Skip to content

Commit

Permalink
Merge branch 'properties' of github.com:openfoodfoundation/openfoodne…
Browse files Browse the repository at this point in the history
…twork into properties
  • Loading branch information
oeoeaio committed Apr 24, 2015
2 parents b1b1bfd + 29faa5f commit 505fd8f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions script/ci/load_staging_baseline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
# current database.

set -e
source ./script/ci/includes.sh

cd /home/openfoodweb/apps/openfoodweb/current
source ./script/ci/includes.sh

echo "Stopping unicorn..."
echo "Stopping unicorn and delayed job..."
service unicorn_openfoodweb stop
RAILS_ENV=staging script/delayed_job -i 0 stop

echo "Backing up current data..."
mkdir -p db/backup
Expand All @@ -22,5 +22,6 @@ gunzip -c db/backup/staging-baseline.sql.gz |psql -h localhost -U openfoodweb op

echo "Restarting unicorn..."
service unicorn_openfoodweb start
# Delayed job is restarted by monit

echo "Done!"

0 comments on commit 505fd8f

Please sign in to comment.