From 92460050e26465c46533712727a675a1b096529e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 7 Dec 2021 10:25:05 +0700 Subject: [PATCH] ecosystem settings --- ecosystem.config.js | 15 +++++++++++++++ index.js | 3 +++ 2 files changed, 18 insertions(+) create mode 100644 ecosystem.config.js create mode 100644 index.js diff --git a/ecosystem.config.js b/ecosystem.config.js new file mode 100644 index 0000000..ac93eea --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,15 @@ +module.exports = { + apps: [ + { + name: "hotel_strapi", + script: "index.js", + exec_mode: "fork", + env: { + NODE_ENV: "development", + }, + env_production: { + NODE_ENV: "production", + }, + }, + ], +}; diff --git a/index.js b/index.js new file mode 100644 index 0000000..22a42de --- /dev/null +++ b/index.js @@ -0,0 +1,3 @@ +const strapi = require('strapi'); + +strapi(/* {...} */).start(); \ No newline at end of file