@@ -0,0 +1,533 @@
+from fabric.api import run, cd%0Afrom fabric.context_managers import prefix%0A%0A%0Adef deploy():%0A    code_dir = '/home/www-data/incubator'%0A    with cd(code_dir), prefix('source ve/bin/activate'):%0A        run('sudo supervisorctl stop incubator')%0A        run(%22./save_db.sh%22)%0A        run(%22git pull%22)%0A        run(%22pip install -r requirements.txt --upgrade -q%22)%0A        run(%22./manage.py collectstatic --noinput -v 0%22)%0A        run(%22./manage.py makemigrations%22)%0A        run(%22./manage.py migrate%22)%0A        run('sudo supervisorctl start incubator')%0A

Create incubator.py