Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c564579d30
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (26 sloc) 0.745 kb
RailsCasts Episode #293: Nginx & Unicorn
http://railscasts.com/episodes/293-nginx-unicorn
Commands used in episode
# setup nginx
sudo apt-get install nginx
nginx -h
cat /etc/init.d/nginx
/etc/init.d/nginx -h
sudo service nginx start
cd /etc/nginx
less nginx.conf
cd sites-enabled
sudo rm default
sudo ln -s /vagrant/config/nginx.conf todo
sudo service nginx restart
# setup unicorn
cd /vagrant
bundle install
bundle exec unicorn -c config/unicorn.rb -D
chmod +x config/unicorn_init.sh
sudo ln -s /vagrant/config/unicorn_init.sh /etc/init.d/unicorn
bundle install --binstubs
sudo service unicorn restart
# rbenv binstubs fix
rbenv local 1.9.2-p290
sed -i 's/env ruby/env ruby-local-exec/' bin/*
Jump to Line
Something went wrong with that request. Please try again.