Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/zsh
- cd ~/api
- source ~/.zshrc
- rm -rf tmp/log/unicorn.*
- rm -rf tmp/log/development.log
- rm -rf tmp/log/sidekiq.log
- git pull --ff-only
- bundle
- echo "Starting Unicorn..."
- bundle exec unicorn -c ./config/unicorn.rb -E production -D
- echo "Done."
- echo "Starting Sidekiq..."
- SIDEKIQ=true bundle exec sidekiq -r ./settings.rb -e production -L ./tmp/log/sidekiq.log -P ./tmp/pids/sidekiq.pid -d
- echo "Done."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement