when I change
passenger_enabled on;
rails_env development;
to following passenger documentation that does state Default: rails_env production;
passenger_enabled on;
rails_env production;
followed by sudo service nginx restart
on Ubuntu 16.04 with nginx, the nginx error.log registers
Could not spawn process for application [...]/current: An error occurred while starting up the preloader
Message from application: undefined method `skip_authorization_check' for SessionsController:Class
the motive regarding a sessions_controller method skip_authorization_check
which is a method used by devise authentication gem... I do not believe that is the real source of the error, as passenger does its job just fine in development mode. In fact reverting to development runs all functions as expected, served up un https.
What I am missing?
update as suggested in answer, the following is obtained for monitoring nginx processes
ps aux|grep nginx root 10373 0.0 0.2 180124 5756 ? Ss 14:26 0:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
www-data 10378 0.0 0.6 180480 13336 ? S 14:26 0:00 nginx: worker process
www-data 10381 0.0 0.5 180124 11404 ? S 14:26 0:00 nginx: worker process
deploy 16182 0.0 0.0 12944 896 pts/0 S+ 16:49 0:00 grep --color=auto nginx