Rails + Elastic Beanstalk + Passenger: change passenger configuration

I have a Rails application (4.0.13 with Ruby 2.2.3) Elastic Beanstalk with Phusion Passenger as its application web server.

I would like to change some Passenger configuration options. As stated here https://www.phusionpassenger.com/library/config/standalone/intro.html#location-of-passengerfile-json , I need to put Passengerfile.json in the root directory of the application.

However, according to this post https://forums.aws.amazon.com/thread.jspa?threadID=181591 , it doesn't make any difference to place the configuration file there. This and the fact that I can not check the passenger variables ( passenger-status does not allow me and suggests sudo , but with sudo it says sudo: passenger-status: command not found ) prevented me from trying to put the configuration file there.

So, how can I check and change Passenger configuration values?

Thanks!

+5
source share
1 answer

Instead of using a file called Passengerfile.json, you should call it passenger-standalone.json , for example, if you want to change max_pool_size , you need a file with this content:

 { "max_pool_size": 3 } 

To check the status of the passenger process, you can use the passenger-status command, but you must use sudo with the -i option so that root inherits the settings of your user environment.

 sudo -i passenger-status 
+7
source

Source: https://habr.com/ru/post/1240558/


All Articles