User Tools

Site Tools


prod:rails

This is an old revision of the document!


Table of Contents

apt-get install apache2 curl git libmysqlclient-dev mysql-server libsqlite3-dev nodejs libssl-dev libreadline-dev

rbenv

git clone https://github.com/sstephenson/rbenv.git ~/.rbenv

(.bashrc/.zshrc already taken care of in .shellrc)

git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build

(may also want the rehash plugin rbenv-gem-rehash) rbenv-gem-rehash has been integrated into rbenv core, woop.

ruby

rbenv install 2.3.1 -k
rbenv global 2.3.1

(-k keep source, helps compiling gems.)

rails

gem install rails
sudo apt-get install -y nodejs &&
sudo ln -sf /usr/bin/nodejs /usr/local/bin/node

passenger

https://www.phusionpassenger.com/library/walkthroughs/deploy/ruby/ with minor modifications for rbenv – Apache site config should contain:

  PassengerRuby /home/slack/.rbenv/shims/ruby
prod/rails.1511480424.txt.gz · Last modified: 2019/11/07 17:58 (external edit)