Skip to content

HTTPS clone URL

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

README

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/*
Something went wrong with that request. Please try again.