Skip to content

Instantly share code, notes, and snippets.

@ChaosSteffen
Created November 20, 2009 20:44
Show Gist options
  • Save ChaosSteffen/239766 to your computer and use it in GitHub Desktop.
Save ChaosSteffen/239766 to your computer and use it in GitHub Desktop.
sudo apt-get install build-essential wget libreadline5-dev libncurses5-dev zlib1g-dev libsqlite3-dev libssl-dev autoconf
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p0.tar.gz
tar xvzf ruby-1.9.1-p0.tar.gz
rm *.gz
cd ruby-1.9.1-p0
autoconf
./configure --prefix=/usr --enable-pthread
make
sudo make install
sudo gem install rails sqlite3-ruby rubygems-update test-unit
cd /var
sudo mkdir www
sudo chown your_username:your_username
cd www
rails test
sudo gem install passenger
sudo passenger-install-nginx-module
sudo nano /opt/nginx/conf/nginx.conf
server {
listen 80;
server_name localhost;
root /var/www/test/public;
passenger_enabled on;
rails_env development;
}
sudo /opt/nginx/sbin/nginx
@harrykiselev
Copy link

Sorry, what does sudo /opt/nginx/sbin/nginx at gistfile7.txt?
Run nginx?

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