vpapakir / uptime-openshift

Port of Uptime (https://github.com/fzaninotto/uptime) to run on Openshift Online
MIT License
37 stars 13 forks source link

production.yaml on openshift #2

Closed weedy closed 10 years ago

weedy commented 10 years ago

I stuck a production.yaml beside every default.yaml I could find in my instance and nothing worked. Editing default.yaml works as expected.

rkmallik commented 10 years ago

hi @weedy, it looks like the uptime project uses https://github.com/lorenwest/node-config to pull in the yaml configuration. If you want to use a differently named file than default.yaml, you can specify an environment variable on OpenShift like this:

rhc set-env NODE_ENV=production -a myapp

This should make the node-config module look for production.yaml for that instance of your openshift app. Let me know if this method to use a production.yaml works.

Otherwise, I would just edit the default.yaml