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
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ Yes, you can fork this repo. Please give me proper credit by linking back to [br
npm run serve
```

1. Start with pm2. Make sure you have pm2 installed. [How to install pm2](https://medium.com/idomongodb/how-to-npm-run-start-at-the-background-%EF%B8%8F-64ddda7c1f1)

```sh
pm2 --name SOME_NAME start npm -- run serve
```

## 🎨 Color Reference

| Color | Hex |
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"browserslist": "> 0.25%, not dead",
"scripts": {
"build": "gatsby build",
"develop": "gatsby develop",
"develop": "gatsby develop --host=0.0.0.0",
"format": "prettier --write \"**/*.{js,jsx,json,md}\"",
"start": "npm run develop",
"serve": "gatsby serve",
"serve": "gatsby serve --host=0.0.0.0",
"clean": "gatsby clean",
"prepare": "husky install",
"lint-staged": "lint-staged"
Expand Down