-
Notifications
You must be signed in to change notification settings - Fork 23
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
Enable containerized demo #64
base: master
Are you sure you want to change the base?
Conversation
@@ -23,7 +23,7 @@ development: | |||
# Reference: https://webpack.js.org/configuration/dev-server/ | |||
dev_server: | |||
https: false | |||
host: localhost |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0.0.0.0
is required, as the container is not in the same space as the host.
For truly remote, such as CodeSpaces, one might also need to change the allowed list below
rails: bundle exec rails s -p 3000 | ||
rails: bundle exec rails s -b 0.0.0.0 -p 3000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enable accepting requests from outside the container, like from the browser.
Dockerfile
Outdated
# Run the app when the container launches | ||
CMD ["foreman", "start", "-f", "Procfile.dev"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be configured differently, but it is likely a good idea to try to run both bare metal and containers through the same commands to avoid the need to update in multiple places when change comes.
Changes
localhost
->0.0.0.0
, as browser is usually not within the container)This change is