Advertisement
Guest User

Untitled

a guest
Aug 28th, 2014
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.41 KB | None | 0 0
  1. #!/bin/zsh
  2. cd ~/api
  3. source ~/.zshrc
  4.  
  5. rm -rf tmp/log/unicorn.*
  6. rm -rf tmp/log/development.log
  7. rm -rf tmp/log/sidekiq.log
  8. git pull --ff-only
  9. bundle
  10. echo "Starting Unicorn..."
  11. bundle exec unicorn -c ./config/unicorn.rb -E production -D
  12. echo "Done."
  13. echo "Starting Sidekiq..."
  14. SIDEKIQ=true bundle exec sidekiq -r ./settings.rb -e production -L ./tmp/log/sidekiq.log -P ./tmp/pids/sidekiq.pid -d
  15. echo "Done."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement