0

I'm asking because it seems like How do I disable HTTPS on Heroku has a solution that I could use -- except I have no idea how to change production.rb for a node app. Where is this file? I understand it's some staging variable; how are those accessed?

Thank you very much.

Community
  • 1
  • 1

1 Answers1

0

I don't think production.rb is relevant to node apps. For node, you can set the NODE_ENV environment variable to 'production', 'development', 'testing' etc., via the Heroku dashboard (or heroku config:set NODE_ENV=value). Then in your node.js app simply read the value of process.env.NODE_ENV to decide whether you are in production mode or not.

Yoni Rabinovitch
  • 5,171
  • 1
  • 23
  • 34