nilbus / pinewood-derby

Pinewood derby status board & sensor driver
Other
17 stars 9 forks source link

Use RAILS_ENV when running w/ foreman #32

Closed nilbus closed 10 years ago

nilbus commented 10 years ago

Sometimes the app gets in a state where The Start Race button shows but triggers an error when clicked saying that a race is already started.

nilbus commented 10 years ago

This was due to RAILS_ENV=development being exported while running foreman, which attempts to force production mode rather than using production. Forcing production mode didn't work for the app though with -e production and RAILS_ENV=development.