Skip to content

Commit 27e558a

Browse files
committed
chang .env
1 parent 095526e commit 27e558a

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

.env.example

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
APP_NAME = "Scope"
22

3-
HOST = 0.0.0.0
4-
PORT = 5000
5-
6-
DB_HOST = 'localhost'
7-
DB_USER = 'root'
8-
DB_PASSWORD = ''
9-
DB_DATABASE = 'db_scope'
10-
DB_DIALECT = 'mysql'
11-
DB_POOL_MAX = 5
12-
DB_POOL_MIN = 0
13-
DB_POOL_ACQUIRE = 30000
14-
DB_POOL_IDLE = 10000
3+
HOST =
4+
PORT =
5+
6+
DB_HOST =
7+
DB_USER =
8+
DB_PASSWORD =
9+
DB_DATABASE =
10+
DB_DIALECT =
11+
DB_POOL_MAX =
12+
DB_POOL_MIN =
13+
DB_POOL_ACQUIRE =
14+
DB_POOL_IDLE =
1515

1616
JWT_ACCESS_TOKEN_SECRET_PRIVATE =
1717
JWT_ACCESS_TOKEN_SECRET_PUBLIC =
@@ -21,9 +21,9 @@ REFRESH_TOKEN_EXPIRATION_DAYS =
2121
VERIFY_EMAIL_TOKEN_EXPIRATION_MINUTES =
2222
RESET_PASSWORD_TOKEN_EXPIRATION_MINUTES =
2323

24-
VERIFYCATION_CODE = 000000
25-
GENERATED_TIME = 0
26-
VALID_DURATION = 300000
24+
VERIFYCATION_CODE =
25+
GENERATED_TIME =
26+
VALID_DURATION =
2727

2828
SMTP_HOST =
2929
SMTP_PORT =

src/server.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ app.use(morgan("dev"));
1818
const PORT = process.env.PORT;
1919
const HOST = process.env.HOST;
2020

21-
db.sequelize.sync().then(() => {
22-
console.log("⏳ Database connected");
23-
});
24-
25-
// db.sequelize.sync({ force: true }).then(() => {
26-
// console.log("⏳ New Database connected");
21+
// db.sequelize.sync().then(() => {
22+
// console.log("⏳ Database connected");
2723
// });
2824

25+
db.sequelize.sync({ force: true }).then(() => {
26+
console.log("⏳ New Database connected");
27+
});
28+
2929
app.get("/", (req, res) => {
3030
res.status(200).json("⏳ Server is running!");
3131
});

0 commit comments

Comments
 (0)