Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

passenger 3 standalone rvm rails

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

like image 407
Sameer C Avatar asked Jan 02 '26 07:01

Sameer C


1 Answers

You can start passenger with variables like this:

VARONE=value VARTWO=value passenger start -a 127.0.0.1 -p 3001 -d
like image 118
thomasfedb Avatar answered Jan 04 '26 04:01

thomasfedb



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!