Skip to content

Conversation

@nathanparekh
Copy link

@nathanparekh nathanparekh commented Dec 28, 2020

Updates the readme to show in the instructions how to setup and use the newly required ADDRESS environment variable. As discussed in #116 there might be some better ways to handle this overall, but in the meantime the instructions should be updated so that people aren’t confused.

For quick reference: For Heroku, people currently need to deploy and then go to the app settings and set ADDRESS to their Heroku app url. For Docker, it needs to be set using -e or by modifying the Dockerfile. For Node, set manually.

Closes #117

```
3. Compile and run the project
```JS
3. Set the ADDRESS variable to your server URL

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where do you do this? What file? I am assuming .env but not everyone will know about such files

Copy link
Author

@nathanparekh nathanparekh Dec 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case I was supposing you'd set it as a shell variable (see the example snippet, though I suppose that code snippet wouldn't work on Windows)... but maybe a .env file would be a better idea as it'd persist?

@jgroffen
Copy link

jgroffen commented Dec 28, 2020

Hello @nathanparekh,

I have submitted a patch (#119) to determine the ADDRESS automatically if one is not provided. Makes deployment to Heroku and many other situations easier.

The documentation updates you have made here are very good - but if my patch is accepted the updates in this PR will need adjusting.

Cheers,

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DOCKER <error> You must set the ADDRESS environment variable.

3 participants