2

I'm trying reload my application on Openshift and having some problems. Don't matter if run rhc app restart or rhc app reload to restart/reload the application, my environment variables aren't reloaded.

Then, to solve the problem, I'm forced to stop and start the application.

PS: Cartridge: python-2.7 Framework: Django

Alice
  • 3,958
  • 2
  • 24
  • 28
nsantana
  • 1,992
  • 1
  • 16
  • 17
  • I think there is something funky going in general with at least the openshift python servers since last week. Read thru the first and seconds pages here op stack overflow. Openshift support has not responded on anything :( – fat fantasma Mar 16 '14 at 16:21

2 Answers2

5

You also have to do:

$ rhc app stop -a appname
$ rhc app start -a appname

instead of restart or reload.

See https://bugzilla.redhat.com/show_bug.cgi?id=1104955#c15

vbalazs
  • 311
  • 2
  • 8
0

Are you setting the environment variables via the rhc env set command? Or using action hooks? I suggest using the rhc env set command, as they will persist correctly between restarts etc.