Skip to content

Updating your code

Riccardo Campisano edited this page Jul 24, 2017 · 1 revision

Update the default branch develop

cd ~/dri
git checkout develop
git pull
source env/bin/activate
# update dependencies packages
pip3 install -r api/requirements_dev.txt
# update database model
python api/manage.py migrate
deactivate
sudo service apache2 restart

Update your branch with develop code

cd ~/dri
git commit ... # commit your code
git checkout develop
git pull
git checkout <YOUR_BRANCH>
git merge develop
# fix and commit conflicts if needed
source env/bin/activate
# update dependencies packages
pip3 install -r api/requirements_dev.txt
# update database model
python api/manage.py migrate
deactivate
sudo service apache2 restart