Open natevw opened 9 years ago
Agree, i'm looking for that exact feature right now
At the moment, arguments can be passed into tessel push
and tessel run
. We could reuse that code path and add the ability to pass in a config json
file for env variables. Maybe default to auto including tessel.json
if that file exists.
Interested parties should comment on my RFC as soon as they get a chance!
I'm not seeing anything very promising in either https://github.com/tessel/cli/blob/cee65557ae7b729e457eef6dd34265c8ea2c1d10/bin/tessel-run.js or https://github.com/tessel/runtime/blob/10ff2dd03e97bd36c4c48598bdf772708072cecf/src/colony/lua/preload.lua#L114, but it would be nice to be able to set environment variables on the Tessel.
Ideally it might be like Heroku, where the environment variables are more of a persistent configuration after reboot in addition to any per-run overrides. Something like
tessel set MY_VAR=value FOO=bar
that's then persisted until unset.