2020-04-10 21:33:30 +03:00
|
|
|
module.exports = {
|
|
|
|
scripts: {
|
2021-11-19 22:52:33 +03:00
|
|
|
default: 'nps help',
|
2020-04-10 21:33:30 +03:00
|
|
|
start: {
|
2021-11-23 03:58:30 +03:00
|
|
|
default: `_dev/pm2/start.sh && _scripts/pm2-all.sh start && pm2 restart sync && echo "Use 'yarn stop' to stop all the servers"`,
|
|
|
|
infrastructure: `_dev/pm2/start.sh`,
|
2020-04-13 02:54:49 +03:00
|
|
|
services: `_scripts/pm2-all.sh start`,
|
2021-12-06 18:53:02 +03:00
|
|
|
firefox: './packages/fxa-dev-launcher/bin/fxa-dev-launcher.mjs &',
|
2020-04-10 21:33:30 +03:00
|
|
|
},
|
|
|
|
stop: {
|
2021-11-19 22:52:33 +03:00
|
|
|
default: 'pm2 kill',
|
2020-04-13 02:54:49 +03:00
|
|
|
infrastructure: `pm2 stop _dev/pm2/infrastructure.config.js`,
|
2021-11-19 22:52:33 +03:00
|
|
|
services: `_scripts/pm2-all.sh stop`,
|
2020-04-10 21:33:30 +03:00
|
|
|
},
|
|
|
|
restart: {
|
2021-11-19 22:52:33 +03:00
|
|
|
default: 'pm2 restart all',
|
2020-04-13 02:54:49 +03:00
|
|
|
infrastructure: `pm2 restart _dev/pm2/infrastructure.config.js`,
|
2021-11-19 22:52:33 +03:00
|
|
|
services: `_scripts/pm2-all.sh restart`,
|
|
|
|
},
|
|
|
|
delete: {
|
|
|
|
default: 'pm2 kill',
|
|
|
|
services: '_scripts/pm2-all.sh delete',
|
|
|
|
},
|
|
|
|
},
|
2020-04-10 21:33:30 +03:00
|
|
|
};
|