Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Failed to load latest commit information.
todo-after adding episodes 292 and 293
README adding episodes 292 and 293


RailsCasts Episode #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/
  sudo ln -s /vagrant/config/ /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/*
Something went wrong with that request. Please try again.