I have a rails app I am trying to run under passenger 3 standalone:
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 app but can't figure out how and where to set them. I just need to source my .profile which has all my environment variables. How do I do it?
passenger 3: ruby 1.9.2 rails 3 rvm head
您可以使用以下变量启动乘客:
VARONE=value VARTWO=value passenger start -a 127.0.0.1 -p 3001 -d
$ passenger start --help Usage: passenger start [directory] [options] Starts Phusion Passenger Standalone and serve one or more Ruby web applications.
Options: ... -e, --environment ENV Framework environment (default: development) ...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.