File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ const mysql = require('mysql');
4
4
const redis = require ( 'redis' ) ;
5
5
const Db = require ( 'mongodb' ) . Db ;
6
6
const Server = require ( 'mongodb' ) . Server ;
7
- const PORT = 3000 ;
8
7
9
8
/*-------------------------mysql----------------------------------------*/
10
9
const mysqlClient = mysql . createConnection ( {
@@ -26,6 +25,8 @@ async function getMysqlVersion() {
26
25
return result ;
27
26
}
28
27
28
+
29
+
29
30
/*-------------------------mongodb---------------------------------------*/
30
31
async function getMongoVersion ( ) {
31
32
const db = new Db ( 'test' , new Server ( process . env . MONGO_HOST , 27017 ) ) ;
@@ -76,6 +77,6 @@ app.use(async(ctx) => {
76
77
}
77
78
} ) ;
78
79
79
- app . listen ( 3000 , ( ) => {
80
- console . info ( `open http://127.0.0.1:${ PORT } ` ) ;
80
+ app . listen ( process . env . APP_PORT , ( ) => {
81
+ console . info ( `open http://127.0.0.1:${ process . env . NGINX_PORT } ` ) ;
81
82
} ) ;
You can’t perform that action at this time.
0 commit comments