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