tessel / t1-cli

[UNMAINTAINED] Command line interface to Tessel 1.
Other
25 stars 21 forks source link

Ability to set environment variables for device script #153

Open natevw opened 9 years ago

natevw commented 9 years ago

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.

krist00fer commented 9 years ago

Agree, i'm looking for that exact feature right now

jiahuang commented 9 years ago

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.

johnnyman727 commented 9 years ago

Interested parties should comment on my RFC as soon as they get a chance!