8000 Update instructions given the new ADDRESS requirement by nathanparekh · Pull Request #118 · ottomated/CrewLink-server · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update instructions given the new ADDRESS requirement #118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Update instructions given the new ADDRESS requirement #118

wants to merge 3 commits into from

Conversation

nathanparekh
Copy link
@nathanparekh nathanparekh commented Dec 28, 2020
edited
Loading

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

@@ -107,8 +112,12 @@ cd crewlink-server
```sh
yarn install
```
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
0