File tree Expand file tree Collapse file tree 2 files changed +21
-21
lines changed Expand file tree Collapse file tree 2 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 1
1
APP_NAME = " Scope"
2
2
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 =
15
15
16
16
JWT_ACCESS_TOKEN_SECRET_PRIVATE =
17
17
JWT_ACCESS_TOKEN_SECRET_PUBLIC =
@@ -21,9 +21,9 @@ REFRESH_TOKEN_EXPIRATION_DAYS =
21
21
VERIFY_EMAIL_TOKEN_EXPIRATION_MINUTES =
22
22
RESET_PASSWORD_TOKEN_EXPIRATION_MINUTES =
23
23
24
- VERIFYCATION_CODE = 000000
25
- GENERATED_TIME = 0
26
- VALID_DURATION = 300000
24
+ VERIFYCATION_CODE =
25
+ GENERATED_TIME =
26
+ VALID_DURATION =
27
27
28
28
SMTP_HOST =
29
29
SMTP_PORT =
Original file line number Diff line number Diff line change @@ -18,14 +18,14 @@ app.use(morgan("dev"));
18
18
const PORT = process . env . PORT ;
19
19
const HOST = process . env . HOST ;
20
20
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");
27
23
// });
28
24
25
+ db . sequelize . sync ( { force : true } ) . then ( ( ) => {
26
+ console . log ( "⏳ New Database connected" ) ;
27
+ } ) ;
28
+
29
29
app . get ( "/" , ( req , res ) => {
30
30
res . status ( 200 ) . json ( "⏳ Server is running!" ) ;
31
31
} ) ;
You can’t perform that action at this time.
0 commit comments