openshift-cartridge-nginx icon indicating copy to clipboard operation
openshift-cartridge-nginx copied to clipboard

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

Open cotherman opened this issue 9 years ago • 1 comments

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.

cotherman avatar Oct 03 '16 18:10 cotherman

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..

lastlink avatar Jun 09 '17 22:06 lastlink