Skip to content

Instantly share code, notes, and snippets.

@elijahc
Last active August 29, 2015 14:05
Show Gist options
  • Save elijahc/7176c16aac20090ed362 to your computer and use it in GitHub Desktop.
Save elijahc/7176c16aac20090ed362 to your computer and use it in GitHub Desktop.
Startup and Shutdown

Startup

$ cd /home/webapps2/vertex
$ unicorn_rails -c config/unicorn.rb
$ bundle exec sidekiq
$ sudo service nginx restart

# Redis should always be running, but in case its not and you have the permissions, I believe this is how you would start it.

$ sudo service redis start

Shutdown

Find processes id's

$ ps -ef | grep unicorn
$ ps -ef | grep sidekiq

Shut them down

$ kill 12345 (etc)

$ sudo service nginx stop
@slenzi
Copy link

slenzi commented Aug 7, 2014

Thanks! -Seth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment