修复打包后读取不到.env文件,编写打包脚本
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
// ecosystem.config.cjs - CommonJS 版本
|
||||
|
||||
module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: 'docreview-frontend',
|
||||
script: 'node',
|
||||
args: [
|
||||
'-r', 'dotenv/config',
|
||||
'./node_modules/.bin/remix-serve',
|
||||
'./build/server/index.js'
|
||||
],
|
||||
instances: 1,
|
||||
autorestart: true,
|
||||
watch: false,
|
||||
max_memory_restart: '1G',
|
||||
env: {
|
||||
NODE_ENV: 'production',
|
||||
PORT: 51703,
|
||||
},
|
||||
error_file: './logs/err.log',
|
||||
out_file: './logs/out.log',
|
||||
log_file: './logs/combined.log',
|
||||
time: true
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user