diff --git a/config/database.js b/config/database.js index 62d931a..4835674 100644 --- a/config/database.js +++ b/config/database.js @@ -1,11 +1,19 @@ module.exports = ({ env }) => ({ - defaultConnection: 'default', + defaultConnection: "default", connections: { default: { - connector: 'bookshelf', + connector: "bookshelf", + // settings: { + // client: 'sqlite', + // filename: env('DATABASE_FILENAME', '.tmp/data.db'), + // }, settings: { - client: 'sqlite', - filename: env('DATABASE_FILENAME', '.tmp/data.db'), + client: "mysql", + host: env("DATABASE_HOST"), + port: env.int("DATABASE_PORT"), + database: env("DATABASE_NAME"), + username: env("DATABASE_USERNAME"), + password: env("DATABASE_PASSWORD"), }, options: { useNullAsDefault: true, diff --git a/ecosystem.config.js b/ecosystem.config.js new file mode 100644 index 0000000..742bc40 --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,15 @@ +module.exports = { + apps: [ + { + name: "ecomm_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