Commit 439cc9eb authored by Choi Ga Young's avatar Choi Ga Young
Browse files

Merge branch 'master' into rkyoung7

parents 66e39512 ff5b4aaa
const config = {
host: 'localhost',
// username: process.env.PG_USER || 'butter',
// password: process.env.PG_PASSWORD || 'butter',
// database: process.env.PG_DATABASE || 'butterDB',
username: process.env.PG_USER || 'kuku',
password: process.env.PG_PASSWORD || 'kuku0725',
database: process.env.PG_DATABASE || 'todayKUDB',
dialect: 'postgres',
pool: {
max: 10,
......
import dotenv from "dotenv"
import app from "./app.js"
import appConfig from "./config/app.config.js"
import sequelize from "sequelize"
// import { sequelize } from "./db/index.js"
import { sequelize } from "./db/index.js"
dotenv.config({
path: `${process.env.NODE_ENV === "production" ? ".env" : ".env.development"
......@@ -10,7 +9,7 @@ dotenv.config({
});
sequelize
// .sync({ force: false })
.sync({ force: false })
.then(() => {
app.listen(appConfig.port, () => {
console.log(`Server is running on port ${appConfig.port}`);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment