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

Adding pm2 example on README.md and local_ip support #149

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

HelmerBarcos
Copy link

@HelmerBarcos HelmerBarcos commented Jul 14, 2021

Hi @bchiang7 I just made following changes. I think they could be very useful.

  1. Adding localhost and local_ip support

When trying to run the gatsby server on a VM is mandatory to set the localhost flag. Whit this flag set to 0.0.0.0 we are able to reach the app on http://localhost:PORT and http://LOCAL_IP:PORT.

Taken from https://www.gatsbyjs.com/docs/tutorial/part-1/#run-your-site-locally

Note: If you are using VM setup like vagrant and/or would like to listen on your local IP address, run gatsby develop --host=0.0.0.0. Now, the development server listens on both http://localhost and your local IP.

  1. Adding pm2 execution command example for background mode

@HelmerBarcos HelmerBarcos changed the title Barcos.co Adding pm2 example on Readme and local_ip support Jul 14, 2021
@HelmerBarcos HelmerBarcos changed the title Adding pm2 example on Readme and local_ip support Adding pm2 example on README.md and local_ip support Jul 14, 2021
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.

None yet

1 participant