Created
January 11, 2023 07:02
-
-
Save kimihito/e53eaad64d59293f7910d93816e26bf5 to your computer and use it in GitHub Desktop.
Remix.run pm2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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