Skip to content
This repository has been archived by the owner on Jul 11, 2018. It is now read-only.

nginx_http.conf is over written after stop/restart with rhc app-xxx -a xxxx #18

Open
cotherman opened this issue Oct 3, 2016 · 1 comment

Comments

@cotherman
Copy link

Not sure if this is cartridge problem or OpenShift problem.

When using rhc app-stop -a xxxxx and restarting with app-start -a xxxxx. The config file nginx/conf/nginx_http.conf is over written by the default conf file. Stopping the app with rhc app-stop -a xxxx and restarting the app from the web console does not cause the over write. It only happens when rhc app-start -a xxxx is used.

@lastlink
Copy link

lastlink commented Jun 9, 2017

if you clone after creating your app you can edit the config in /.openshift/nginx.conf.erb and commit/push your config changes back to your openshift gear. The machine will auto restart and use your new config. Note your websites in public will be overwritten. b/c of this I moved my nginx root folder to OPENSHIFT_DATA_DIR to not be overwritten by config changes when i push git to the gear..

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

No branches or pull requests

2 participants