You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
465 B

# Target branch: master, stable/pike, ...
cd /opt/stack/horizon
# Remove stale compiled python files
find horizon -name '*.pyc' | xargs rm
find openstack_dashboard -name '*.pyc' | xargs rm
# Fetch the latest code from git
git checkout $BRANCH
git remote update origin
git merge origin/$BRANCH
python compilemessages
python collectstatic --noinput
python compress --force
sudo service apache2 reload