Skip to content

Commit

Permalink
Merge pull request #2 from REFSZIN/Deploy
Browse files Browse the repository at this point in the history
Ci : Deploy + DB Connection
  • Loading branch information
REFSZIN authored Sep 14, 2022
2 parents 4c1e06a + 2558e82 commit 76bd7ef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PORTA=5000
PORT=4000
NOMEE="SMART 📱 STORE API Server"
MONGO_URI="mongodb://localhost:27017"
DB_NAME="SMART_STORE_API"
MONGO_URI="mongodb+srv://driven:123@smartcellcluster.ijaivyk.mongodb.net/?retryWrites=true&w=majority"
DB_NAME="SmartCellCluster"
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": " nodemon src/app.js"
"dev": " nodemon ./src/app.js",
"start": "node ./src/app.js"
},
"keywords": [],
"author": "",
Expand Down
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ dotenv.config();
app.use();
app.use();

app.listen(process.env.PORTA, () => { console.log(chalk.green.bold(`Rodando ${process.env.NOMEE} Lisu na Porta: ${process.env.PORTA}`))});
app.listen(process.env.PORT, () => { console.log(chalk.green.bold(`Rodando ${process.env.NOMEE} Lisu na Porta: ${process.env.PORT}`))});

0 comments on commit 76bd7ef

Please sign in to comment.