-
- Make .env file @ root and copy contents of .env.example into it
-
- pipenv shell
-
- ./build.sh
-
- ./start_prod.sh
- install Python Ubuntu
sudo apt install python3 python3-pip
- install Python Fedora
sudo dnf install python3 python3-pip
- install Python Arch
sudo pacman -S python3-pip
- install pipenv
pip install --user pipenv
- Install venv wrapper for oh-my-zsh
pip install virtualenvwrapper
- In the .zshrc, add these lines to direct virtual environment to the project
export VIRTUALENVWRAPPER_PYTHON=$(which python3)
plugins=(
"existing plugins"
...
virtualenvwrapper
)
It is optimized to be launched to render, unfortunately it turns out that Render's free tier does not make a stable release due to slow dynos. Alternative options for deployment could be AWS Beanstalk or fly.io.
If I were to do it over, I would use Svelte to build the static files, this would save time on development
- ./build.sh This command will build the static file and apply migrations
- ./start.sh This command starts the app with pip
- ./start_prod.sh This command starts the app with gunicorn