Browse Source

add a simple deploy script

It's rather hacky and untested, but should do the job.
pull/1/head
Vaidas Jablonskis 11 years ago
parent
commit
100c3d68dc
  1. 15
      script/deploy.sh

15
script/deploy.sh

@ -0,0 +1,15 @@
#!/bin/bash
server='master0.entrydns.net'
if [[ $# != 1 ]]; then
echo 'Specify rpm file to deploy'
exit 1
else:
package=${1}
fi
scp ${package} ${server}:/tmp
ssh -t ${server} "sudo yum update -y /tmp/${package}"
ssh -t ${server} "su - entrydns -c 'cd ${HOME} && bundle exec rake db:migrate RAILS_ENV=production'
Loading…
Cancel
Save