my python flask deploy flow

How to update python api sudo su deploy

cd /home/deploy/your-python-project
git pull
source ../py3.4/bin/activate
python setup.py bdist_egg
easy_install dist/<python_proj.egg>
alembic upgrade head
uwsgi –reload ~/uwsgi.pid

git download the src code -> (env) -> pack it into egg -> using easy_install to install the python egg -> update db migration -> restart server

Posted in: web