yusmardianto 3年前
コミット
4f27c40c0c
9個のファイルの変更35566行の追加1621行の削除
  1. +1
    -0
      .gitignore
  2. +0
    -15
      config/database.js
  3. +28
    -0
      config/plugins.js
  4. +1
    -1
      config/server.js
  5. +15
    -0
      ecosystem.config.js
  6. +3
    -0
      index.js
  7. +33877
    -0
      package-lock.json
  8. +3
    -3
      package.json
  9. +1638
    -1602
      yarn.lock

+ 1
- 0
.gitignore ファイルの表示

@@ -112,3 +112,4 @@ exports
*.cache *.cache
build build
.strapi-updater.json .strapi-updater.json
config/database.js

+ 0
- 15
config/database.js ファイルの表示

@@ -1,15 +0,0 @@
module.exports = ({ env }) => ({
defaultConnection: 'default',
connections: {
default: {
connector: 'bookshelf',
settings: {
client: 'sqlite',
filename: env('DATABASE_FILENAME', '.tmp/data.db'),
},
options: {
useNullAsDefault: true,
},
},
},
});

+ 28
- 0
config/plugins.js ファイルの表示

@@ -0,0 +1,28 @@
module.exports = ({ env }) => ({
// email: {
// provider: "nodemailer",
// providerOptions: {
// host: env("SMTP_HOST"),
// port: env("SMTP_PORT"),
// secure: false,
// auth: {
// user: env("SMTP_USER"),
// pass: env("SMTP_PASSWORD"),
// },
// },
// settings: {
// defaultFrom: "noreply@thamrin.co.id",
// defaultReplyTo: "noreply@thamrin.co.id",
// },
// },
graphql: {
endpoint: "/graphql",
shadowCRUD: true,
playgroundAlways: true,
depthLimit: 7,
amountLimit: 1000,
apolloServer: {
tracing: false,
},
},
});

+ 1
- 1
config/server.js ファイルの表示

@@ -3,7 +3,7 @@ module.exports = ({ env }) => ({
port: env.int('PORT', 1337), port: env.int('PORT', 1337),
admin: { admin: {
auth: { auth: {
secret: env('ADMIN_JWT_SECRET', 'ea704c52f457e83bff1b8a05b9c3a835'),
secret: env('ADMIN_JWT_SECRET'),
}, },
}, },
}); });

+ 15
- 0
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",
},
},
],
};

+ 3
- 0
index.js ファイルの表示

@@ -0,0 +1,3 @@
const strapi = require('strapi');
strapi(/* {...} */).start();

+ 33877
- 0
package-lock.json
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 3
- 3
package.json ファイルの表示

@@ -9,9 +9,9 @@
"build": "strapi build", "build": "strapi build",
"strapi": "strapi" "strapi": "strapi"
}, },
"devDependencies": {},
"dependencies": { "dependencies": {
"knex": "0.21.18", "knex": "0.21.18",
"mysql": "^2.18.1",
"sqlite3": "5.0.0", "sqlite3": "5.0.0",
"strapi": "3.6.8", "strapi": "3.6.8",
"strapi-admin": "3.6.8", "strapi-admin": "3.6.8",
@@ -32,8 +32,8 @@
"uuid": "64646ad5-7507-4cd8-93e5-3dbc4aedf338" "uuid": "64646ad5-7507-4cd8-93e5-3dbc4aedf338"
}, },
"engines": { "engines": {
"node": ">=10.16.0 <=14.x.x",
"npm": "^6.0.0"
"node": ">=10.16.0 <=16.x.x",
"npm": "^7.9.0"
}, },
"license": "MIT" "license": "MIT"
} }

+ 1638
- 1602
yarn.lock
ファイル差分が大きすぎるため省略します
ファイルの表示


読み込み中…
キャンセル
保存