Skip to content

Commit

Permalink
Remove config folder and update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelmakaha committed Oct 8, 2020
1 parent b8f854b commit 16fc976
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions src/config/index.js

This file was deleted.

3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require('dotenv').config();
const config = require('./config')
const express = require('express');
const app = express();
const morgan = require('morgan');
Expand Down Expand Up @@ -37,6 +35,7 @@ app.use('/comment',commentRoutes);
app.use('/auth',authRoutes);

// starting the server
app.set('port', process.env.PORT || 3000);
app.listen(app.get('port'), () => {
console.log(`Server on port ${app.get('port')}`);
});

0 comments on commit 16fc976

Please sign in to comment.