Browse Source

Merge branch 'master' of bitbucket.org:clyfe/entrydns

pull/1/head
Nicolae Claudius 11 years ago
parent
commit
f9ed98d896
  1. 7
      script/deploy.sh

7
script/deploy.sh

@ -7,13 +7,12 @@ fi
if [[ $# != 1 ]]; then
echo 'Specify rpm file to deploy'
exit 1
else:
package=${1}
fi
yum update -y ${package}
su - entrydns -c 'bundle exec rake db:migrate RAILS_ENV=production'
sudo yum update -y $1
su - entrydns -s /bin/bash -c 'bundle exec rake db:migrate RAILS_ENV=production'
systemctl reload unicorn-entrydns.service
systemctl status unicorn-entrydns.service

Loading…
Cancel
Save