Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Use Ruby 2.5.5 because Passenger

...

Code Block
yum install ruby sqlite-devel # Needed to build Ruby using RVM.
useradd avalon
su - avalon
curl -L https://get.rvm.io | bash -s stable --ruby=2.5.75

Source the RVM shell (as avalon user) or close the terminal and open it back up.

Code Block
source /home/avalon/.rvm/scripts/rvm
rvm use 2.5.75
exit

Install Passenger apache module requirements (as root)

...

Code Block
PassengerRuby /home/avalon/.rvm/rubies/ruby-2.5.75/bin/ruby

Validate passenger install and restart apache

...

Code Block
WorkingDirectory=/var/www/avalon
ExecStart=/bin/bash -lc '/home/avalon/.rvm/gems/ruby-2.5.75/bin/bundle exec sidekiq -e production'
User=avalon
Group=avalon

...