petre2dor / piGarden

Irrigation system powered by raspberry pi. work in progress...
GNU General Public License v3.0
7 stars 0 forks source link

PI_GARDEN_ENV is not defined by default #36

Closed rcursaru closed 7 years ago

rcursaru commented 7 years ago

1|AC | TypeError: Cannot read property 'sufix' of undefined 1|AC | at Object. (/piGarden/devices/controller/temperature/Temperature.js:8:77) 1|AC | at Module._compile (module.js:570:32) 1|AC | at Object.Module._extensions..js (module.js:579:10) 1|AC | at Module.load (module.js:487:32) 1|AC | at tryModuleLoad (module.js:446:12) 1|AC | at Function.Module._load (module.js:438:3) 1|AC | at Function._load (/usr/lib/node_modules/pm2/node_modules/pmx/lib/transaction.js:62:21) 1|AC | at Module.require (module.js:497:17) 1|AC | at require (internal/module.js:20:19) 1|AC | at Object. (/piGarden/devices/Routes.js:3:19)

rcursaru commented 7 years ago

@petre2dor should we put a conditional testing for PI_GARDEN_ENV (and assume an answer if variable is not set) or should we set PI_GARDEN_ENV at each deployment?

rcursaru commented 7 years ago

for now I added a default setting to DEV in app.json