Node.js
Running servers or scripts in the background is a common use case for Gaucho. If you are running a Node.js server:
tip
Remember to update your task path.
Run project#
This tasks assumes your package.json is configured with a "start" script.
name
Run servercommand
npm startpath
~/my-projectUsing yarn#
Alternatively, you can use yarn
name
Run servercommand
npm startpath
~/my-projectRunning a Node.js script#
If you don't have a package.json configured and just want to run a plain Node.js script:
name
Run script.jscommand
node script.jspath
~/my-projectRunning tests#
If you have tests configured in your project (using package.json):
name
Run testscommand
npm testpath
~/my-project