# apt-get update
# sudo apt-get install emacs wget ruby-full ruby-dev build-essential libpq-dev sudo libsqlite3-dev apache2
# wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.22.tgz
# tar xzf rubygems-1.8.22.tgz
# cd rubygems-1.8.22
# sudo ruby setup.rb
# gem install rails
# adduser gennad
# apt-get install -y libcurl4-openssl-dev zlib1g-dev apache2-prefork-dev libapr1-dev libaprutil1-dev
# gem install passenger
# passenger-install-apache2-module
# rails new myapp
echo "gem 'therubyracer'" >> myapp/Gemfile
cd myapp
bundle install
# emacs /etc/sudoers # edit sudoers t include gennad user there
# su gennad
# emacs config/environments/production.rb
...
config.assets.compile = true