简体   繁体   中英

passenger start standalone with RAILS_ENV=production

I'm trying to run multiple rails apps (different versions) on my server. I followed this post

Phusion Passenger & running multiple Ruby versions

I ran one app outside the pattern with passenger standalone:

passenger start -a 127.0.0.1 -p 3000 -d

But I got this error:

database configuration does not specify adapter (ActiveRecord::AdapterNotSpecified)

So, this app is on the development environment and I want to run as production mode.

How can I do it?

Solved! I passed now this command:

passenger start -a 127.0.0.1 -p 3000 -d --environment production

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM