Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [-d "/srv/www/photohackday"]; then
- cd /srv/www/photohackday && RAILS_ENV=production bundle exec pumactl -F /srv/www/photohackday/scripts/puma.rb stop
- fi;
- cd /srv/www
- rm -rf photohackday
- git clone -b master git@github.com:mirceapreotu/photohackday.git photohackday
- cd photohackday
- mkdir pids sockets
- bundle install
- RAILS_ENV=production bundle exec rake db:migrate assets:precompile
- RAILS_ENV=production bundle exec pumactl -F /srv/www/photohackday/scripts/puma.rb start
- 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