Skip to content

Instantly share code, notes, and snippets.

@kimihito
Created January 11, 2023 07:02
Show Gist options
  • Save kimihito/e53eaad64d59293f7910d93816e26bf5 to your computer and use it in GitHub Desktop.
Save kimihito/e53eaad64d59293f7910d93816e26bf5 to your computer and use it in GitHub Desktop.
Remix.run pm2
module.exports = {
apps: [
{
name: "remix-pm2-test",
exec_mode: "cluster",
instances: "max",
cwd: "./",
script: "./node_modules/.bin/remix-serve",
args: "build",
watch: ["./"], // または true
watch_options: {
followSymlinks: true,
usePolling: true,
interval: 10000,
binaryInterval: 10000,
},
env: {
PORT: 3000,
NODE_ENV: "production",
},
},
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment