Replies: 1 comment
-
|
Hey! The issue is with how you're configuring the When you set both Here's what should work: module.exports = {
apps: [{
name: 'blog',
script: 'npm',
args: 'run start',
cwd: './' ,
instances: 1,
exec_mode: 'fork', // use fork mode, cluster doesn't work well with Deno
autorestart: true,
restart_delay: 3000,
max_restarts: 10,
watch: false, // recommend disabling in production
max_memory_restart: '800M',
log_date_format: 'YYYY-MM-DD HH:mm:ss',
error_file: './logs/error.log',
out_file: './logs/output.log',
env: {
NODE_ENV: 'production',
PORT: 3000,
HOST: '0.0.0.0',
NEXT_TELEMETRY_DISABLED: '1'
}
}]
};A few things I changed:
Alternatively, if you want to call deno directly: script: 'deno',
args: 'task start',
interpreter: 'none',The Also heads up: the Let me know if this works! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
hello, when I trying to customised an
pm2config file (ecosystem.config.js) to help host thenextjsproject with the details here below:I found that the url can't be works even the
pm2shows no error, just like here below:deno run start, it works file when I visit the url:http://localhost:3000/but when I customsed an

ecosystem.config.jsfor pm2 here below:and start with the commend, just like here below:
but when I try to visit the page:
http://localhost:3000/and found, it dosen't works anymore,and also as you can see, it works fine without any errors shows
how can I make it works?
Beta Was this translation helpful? Give feedback.
All reactions