Skip to content
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

Runtime environment variables in React #78

Closed
wants to merge 1 commit into from
Closed

Conversation

melissachang
Copy link
Contributor

Making this PR only so I can delete the branch, and this code will be saved somewhere.

facebook/create-react-app#578 (comment)

git clone -b mc/react-env --single-branch https://github.com/DataBiosphere/data-explorer.git
cd data-explorer
docker-compose build ui-prod
docker-compose up ui-prod
# Go to localhost, console says: API_URL is bar
# Ctrl-C; in docker-compose.yml, change API_URL to baz
docker-compose up ui-prod
# Go to localhost, console says: API_URL is baz

@melissachang melissachang deleted the mc/react-env branch June 6, 2018 16:52
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.

1 participant