Passenger 3 autonomous RVM rails

I have a rail application that I am trying to run under an autonomous 3rd passenger:

passenger start -a 127.0.0.1 -p 3001 -d

Ive installed this with rvm

cd myapp

rvm use 1.9.2

gem install passenger --pre

I want to set environment variables for my application, but I can’t understand how and where to set them. I just need to specify my .profile, which has all my environment variables. How to do it?

passenger 3: ruby ​​1.9.2 rails 3 rvm head

+3
source share
2 answers

You can start a passenger with the following variables:

VARONE=value VARTWO=value passenger start -a 127.0.0.1 -p 3001 -d
+2
source

$ --help : [] [] Phusion Passenger Standalone - Ruby.

:   ...   -e, --environment ENV Framework ( :                                    )   ...

+1

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


All Articles