From fd0c5d5065447c92d27896170853bdc5297bde40 Mon Sep 17 00:00:00 2001 From: ntki72 Date: Fri, 3 Jan 2025 22:52:43 +0900 Subject: [PATCH] =?UTF-8?q?config.js=E3=81=AB=E3=83=97=E3=83=AD=E3=83=80?= =?UTF-8?q?=E3=82=AF=E3=82=B7=E3=83=A7=E3=83=B3=E7=92=B0=E5=A2=83=E3=81=AE?= =?UTF-8?q?=E3=83=87=E3=83=BC=E3=82=BF=E3=83=99=E3=83=BC=E3=82=B9=E8=A8=AD?= =?UTF-8?q?=E5=AE=9A=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/config/config.js b/config/config.js index 80eaede..d56e11e 100644 --- a/config/config.js +++ b/config/config.js @@ -8,8 +8,19 @@ module.exports = { host: process.env.DB_HOST, dialect: "mysql", migrationStorage: "sequelize", // マイグレーションの保存形式 - seederStorage: "sequelize", // シードデータの保存形式 + seederStorage: "sequelize", // シードデータの保存形式 migrationStoragePath: "src/migrations", // マイグレーションのディレクトリ - seederStoragePath: "src/seeders" // シードデータのディレクトリ + seederStoragePath: "src/seeders" // シードデータのディレクトリ + }, + production: { + username: process.env.DB_USER, + password: process.env.DB_PASS, + database: process.env.DB_NAME, + host: process.env.DB_HOST, + dialect: "mysql", + migrationStorage: "sequelize", + seederStorage: "sequelize", + migrationStoragePath: "src/migrations", + seederStoragePath: "src/seeders" } };