Skip to content

Instantly share code, notes, and snippets.

@jpsilvashy
Created April 23, 2010 23:12
Show Gist options
  • Save jpsilvashy/377283 to your computer and use it in GitHub Desktop.
Save jpsilvashy/377283 to your computer and use it in GitHub Desktop.
# Simple ubuntu setup instructions
# First create ssh keys
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install zlib1g-dev libssl-dev libreadline5-dev
sudo apt-get install mysql-server mysql-client libmysqlclient-dev
sudo apt-get install git-core
# Install REE from source, install passenger and nginx
cd ~
mkdir src
cd src
wget http://rubyforge.org/frs/download.php/68720/ruby-enterprise_1.8.7-2010.01_amd64.deb
sudo dpkg -i ruby-enterprise_1.8.7-2010.01_amd64.deb
sudo gem update --system
sudo passenger-install-nginx-module --auto --auto-download
sudo vi /opt/nginx/conf/nginx.conf
# follow the directions at the end of running passenger-install-nginx-module
# start nginx
sudo /opt/nginx/sbin/nginx
sudo gem install rails --pre --no-ri --no-rdoc
sudo gem install bundler --no-ri --no-rdoc
# replace my_app with your actual application name
mkdir ~/apps
mkdir ~/apps/my_app/releases
mkdir ~/apps/my_app/shared
mkdir ~/apps/my_app/shared/log
cd ~/apps/my_app/current
bundle install --relock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment