diff --git a/ecosystem.config.js b/ecosystem.config.js index 10e4eb0..ce4759e 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -3,11 +3,16 @@ module.exports = { { name: "blog-bs", script: "serve", - args: "-s build", + args: "", watch: false, ignore_watch: ["node_modules"], log_date_format: "MM-DD HH:mm:ss.SSS Z", - env: {}, + env: { + PM2_SERVE_PATH: "./build", + PM2_SERVE_PORT: 7135, + PM2_SERVE_SPA: "true", + PM2_SERVE_HOMEPAGE: "/index.html", + }, max_restarts: 5, }, ],