Merge "Update horizon-reload.sh not to use run_tests.sh"
This commit is contained in:
commit
6812d2f643
|
@ -1,13 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Target branch: master, stable/newton, ...
|
||||
BRANCH=stable/newton
|
||||
# Target branch: master, stable/pike, ...
|
||||
BRANCH=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
|
||||
./run_tests.sh --compilemessages -N
|
||||
DJANGO_SETTINGS_MODULE=openstack_dashboard.settings python manage.py collectstatic --noinput
|
||||
DJANGO_SETTINGS_MODULE=openstack_dashboard.settings python manage.py compress --force
|
||||
|
||||
python manage.py compilemessages
|
||||
python manage.py collectstatic --noinput
|
||||
python manage.py compress --force
|
||||
sudo service apache2 reload
|
||||
|
|
Loading…
Reference in New Issue