prod:rails
This is an old revision of the document!
apt-get install apache2 curl git libmysqlclient-dev mysql-server libsqlite3-dev nodejs libssl-dev libreadline-dev
rbenv
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.1511480491.txt.gz · Last modified: 2019/11/07 17:58 (external edit)