boekkooi / openshift-cartridge-nginx

43 stars 36 forks source link

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

Open cotherman opened 8 years ago

cotherman commented 8 years ago

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 commented 7 years ago

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