Skip to content

Instantly share code, notes, and snippets.

@richardaum
Last active November 6, 2021 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardaum/fc7a4cf65bf3afad5fdd4b9a669ca52d to your computer and use it in GitHub Desktop.
Save richardaum/fc7a4cf65bf3afad5fdd4b9a669ca52d to your computer and use it in GitHub Desktop.
FBG PM2
/** @type import('pm2').StartOptions */
const pwd = "/home/richardaum/projects/FreeBoardGames.org";
module.exports = {
apps: [
{
cwd: `${pwd}/web`,
name: "i18n",
script: "npm",
args: "run i18n:watch",
watch: false,
},
{
cwd: `${pwd}/web`,
name: "webpack",
script: "npm",
args: "run build:server:dev -- --watch",
watch: false,
},
{
cwd: `${pwd}/web`,
name: "next.js",
script: "npm",
args: "run dev:runserver",
watch: "server/dist",
},
{
cwd: `${pwd}/web`,
name: "bg.io",
script: "npm",
args: "run start:bgio",
watch: "server/dist",
},
{
cwd: `${pwd}/fbg-server`,
name: "nest.js",
script: "npm",
args: "run start:dev",
watch: false,
},
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment