I am solving a similar problem.
My problem was the configuration of passenger_ruby /usr/bin/ruby; Which indicates the wrong version. My solution was to set the path to which ruby
On the server I use rvm. But there are other ruby ββsettings.
First try to test the environment. Go to the application directory and run passenger start . This will show you if the server is ready to run the application. Correct the mistakes...
If the message still says that
cannot load such file
run gem install bundler and recheck.
Then configure the path to NGINX along the path from the command which ruby and restart the application.
source share