code.pablomurad.com

emchess

Browser chess with emoji pieces against Stockfish, no server needed

ecosystem.config.cjs raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Serves the production build (./dist) with PM2's built-in static server.
// Build first: npm run build
//   pm2 start ecosystem.config.cjs
module.exports = {
  apps: [
    {
      name: "emchess",
      script: "serve",
      env: {
        PM2_SERVE_PATH: "./dist",
        PM2_SERVE_PORT: 17393,
        PM2_SERVE_SPA: "true",
        PM2_SERVE_HOMEPAGE: "/index.html",
      },
      autorestart: true,
      max_restarts: 10,
      watch: false,
    },
  ],
};