Advertisement
Guest User

Untitled

a guest
Nov 28th, 2015
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [-d "/srv/www/photohackday"]; then
  4. cd /srv/www/photohackday && RAILS_ENV=production bundle exec pumactl -F /srv/www/photohackday/scripts/puma.rb stop
  5. fi;
  6.  
  7. cd /srv/www
  8. rm -rf photohackday
  9. git clone -b master git@github.com:mirceapreotu/photohackday.git photohackday
  10. cd photohackday
  11. mkdir pids sockets
  12. bundle install
  13. RAILS_ENV=production bundle exec rake db:migrate assets:precompile
  14.  
  15. RAILS_ENV=production bundle exec pumactl -F /srv/www/photohackday/scripts/puma.rb start
  16. RAILS_ENV=production bundle exec sidekiq -d -L /srv/www/photohackday/log/sidekiq.log -C /srv/www/photohackday/config/sidekiq.yml
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement