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

Exposing TRUFFLE_NETWORK in the node process #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Exposing TRUFFLE_NETWORK in the node process #34

wants to merge 1 commit into from

Conversation

lgalabru
Copy link

@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