vigetlabs/gulp-rails-pipeline

How to get process.env.RAILS_ENV?

Closed this issue · 2 comments

Hi,
thanks for your repo, very nice work!

I only have problem with process.env.RAILS_ENV, as it's always undefined. I guess you must be using some Rails code to set this, maybe .env file?

Thanks

I guess I found it out: export RAILS_ENV=production, right?

Yep, that's a way. I think I've only been explicitly using it on Heroku, and I set up the environment variables through the admin. You can also set it on the command line before whatever command you run RAILS_ENV=production gulp