File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -10,20 +10,21 @@ var indexRouter = require('./routes/index');
10
10
var usersRouter = require ( './routes/users' ) ;
11
11
12
12
var app = express ( ) ;
13
- //Default port 3000 is already in use by the app
13
+ // Default port 3000 is already in use by the app
14
14
app . listen ( 3001 ) ;
15
15
16
- //Connection to the MySQL database
17
- var connection = mysql . createConnection ( {
18
- host : 'db' ,
19
- user : 'root' ,
20
- password : process . env . MYSQL_ROOT_PASSWORD ,
21
- // database : 'dbname'
22
- } ) ;
23
- connection . connect ( function ( err ) {
24
- if ( err ) throw err ;
25
- console . log ( "Connected to db!" ) ;
26
- } ) ;
16
+ // Connection to the MySQL database
17
+ // just uncomment the code bellow to connect to the MySQL DATABASE
18
+ // var connection = mysql.createConnection({
19
+ // host : 'db',
20
+ // user : 'root',
21
+ // password : process.env.MYSQL_ROOT_PASSWORD,
22
+ // database : 'dbname'
23
+ // });
24
+ // connection.connect(function(err) {
25
+ // if (err) throw err;
26
+ // console.log("Connected to db!");
27
+ // });
27
28
28
29
// setup cors
29
30
app . use ( cors ( ) )
You can’t perform that action at this time.
0 commit comments