Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run in production mode? #28

Closed
musaffa opened this issue Aug 7, 2016 · 3 comments
Closed

How to run in production mode? #28

musaffa opened this issue Aug 7, 2016 · 3 comments
Labels

Comments

@musaffa
Copy link

musaffa commented Aug 7, 2016

I tried to run by setting RACK_ENV="production" in .env but I get the following error:

bundler: failed to load command: rackup (/home/musaffa/.rbenv/versions/2.3.1/bin/rackup)
ActiveRecord::AdapterNotSpecified: '"production"' database is not configured. Available: ["default", "development", "test", "load_test", "production"]

But my production database is already specified and it works well with:

RACK_ENV=production bundle exec rackup -p 3000
@ysbaddaden ysbaddaden added the bug label Aug 7, 2016
@ysbaddaden
Copy link
Owner

it can't find the "production" environment, including the quotes. This is a problem in the .env parser that won't remove the quotes. As a workaround you may omit the quotes:

RACK_ENV=production

@musaffa
Copy link
Author

musaffa commented Aug 7, 2016

Oh thanks. 👍

@ysbaddaden
Copy link
Owner

Closing, since we don't parse .env files anymore. Use the .praxrc shell script instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants