Skip to content
This repository was archived by the owner on Jun 14, 2018. It is now read-only.

Exposing TRUFFLE_NETWORK in the node process#34

Open
lgalabru wants to merge 1 commit intoConsenSys-archive:masterfrom
lgalabru:feature/exposing-network-in-env
Open

Exposing TRUFFLE_NETWORK in the node process#34
lgalabru wants to merge 1 commit intoConsenSys-archive:masterfrom
lgalabru:feature/exposing-network-in-env

Conversation

@lgalabru
Copy link
Copy Markdown

@lgalabru lgalabru commented Aug 2, 2017

Hello there,

I'm proposing a quick work around, so we can work around the current lack of flexibility with the environment / deployment issue. The idea behind this patch is to expose the selected network as an environment variable, so that the process can introspect itself and be aware of the current environment.
This is a practice coming from the rails community. The command:
$ rails c production
will seed RAILS_ENV with production.
Thank you for the amazing work!
Best,

Ludovic

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant