mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
Add command to debug the server (#533)
Co-authored-by: Florent FAYOLLE <florent.fayolle@beta.gouv.fr>
This commit is contained in:
parent
d280e796a0
commit
bf15a14dd4
@ -101,6 +101,16 @@ Lost on what you can do to help? If you are new to Grist, you may just pick one
|
|||||||
|
|
||||||
https://github.com/gristlabs/grist-core/labels/good%20first%20issue
|
https://github.com/gristlabs/grist-core/labels/good%20first%20issue
|
||||||
|
|
||||||
|
## Debug the server
|
||||||
|
|
||||||
|
You can debug the NodeJS application using this command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ yarn start:debug
|
||||||
|
```
|
||||||
|
|
||||||
|
And start using your nodejs debugger client (like the Chrome Devtools). See https://nodejs.org/en/docs/guides/debugging-getting-started#inspector-clients
|
||||||
|
|
||||||
## Run tests
|
## Run tests
|
||||||
|
|
||||||
You may run the tests using one of these commands:
|
You may run the tests using one of these commands:
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
"repository": "git://github.com/gristlabs/grist-core.git",
|
"repository": "git://github.com/gristlabs/grist-core.git",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "sandbox/watch.sh",
|
"start": "sandbox/watch.sh",
|
||||||
|
"start:debug": "NODE_INSPECT=1 sandbox/watch.sh",
|
||||||
"install:python": "buildtools/prepare_python.sh",
|
"install:python": "buildtools/prepare_python.sh",
|
||||||
"install:python2": "buildtools/prepare_python2.sh",
|
"install:python2": "buildtools/prepare_python2.sh",
|
||||||
"install:python3": "buildtools/prepare_python3.sh",
|
"install:python3": "buildtools/prepare_python3.sh",
|
||||||
|
@ -17,6 +17,6 @@ fi
|
|||||||
|
|
||||||
tsc --build -w --preserveWatchOutput $PROJECT &
|
tsc --build -w --preserveWatchOutput $PROJECT &
|
||||||
catw app/client/*.css app/client/*/*.css -o static/bundle.css -v & webpack --config $WEBPACK_CONFIG --mode development --watch &
|
catw app/client/*.css app/client/*/*.css -o static/bundle.css -v & webpack --config $WEBPACK_CONFIG --mode development --watch &
|
||||||
NODE_PATH=_build:_build/stubs:_build/ext nodemon --delay 1 -w _build/app/server -w _build/app/common _build/stubs/app/server/server.js &
|
NODE_PATH=_build:_build/stubs:_build/ext nodemon ${NODE_INSPECT:+--inspect} --delay 1 -w _build/app/server -w _build/app/common _build/stubs/app/server/server.js &
|
||||||
|
|
||||||
wait
|
wait
|
||||||
|
Loading…
Reference in New Issue
Block a user