Skip to content

Instantly share code, notes, and snippets.

@renefs
Created December 12, 2017 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save renefs/4fd0d253fbbd449f19c036e937ae90c2 to your computer and use it in GitHub Desktop.
Save renefs/4fd0d253fbbd449f19c036e937ae90c2 to your computer and use it in GitHub Desktop.
#!/bin/bash
cd /home/projects/project
. ./env/bin/activate
# Extract the package
tar -xzf package.tgz
rm package.tgz
rm ./web/project/config.py
cp ./config.py ./web/project/config.py
cd ./web
pip install -r requirements.txt
python ./manage.py makemigrations
python ./manage.py migrate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment