From 4727cd8a6a2af07fa062aa842d8a0b4c9682241f Mon Sep 17 00:00:00 2001 From: Francisco Pessano Date: Sun, 28 Nov 2021 01:44:07 -0300 Subject: [PATCH] deploy done --- .gitignore | 3 ++- API/returnMultiplicationTables.js | 2 +- app.js | 2 +- package.json | 1 + 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 49e0fc6..7c4da4e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /node_modules -/package-lock.json \ No newline at end of file +/package-lock.json +.vercel diff --git a/API/returnMultiplicationTables.js b/API/returnMultiplicationTables.js index cbec3dc..3ece92c 100644 --- a/API/returnMultiplicationTables.js +++ b/API/returnMultiplicationTables.js @@ -75,4 +75,4 @@ app.get('/', (req, res) => { }) }) -app.listen(port) \ No newline at end of file +app.listen(process.env.PORT || port) \ No newline at end of file diff --git a/app.js b/app.js index 9dfa4ce..6723723 100644 --- a/app.js +++ b/app.js @@ -1,4 +1,4 @@ -const url = 'http://localhost:3001' +const url = 'https://multiplication-table-api.herokuapp.com' const axios = require('axios') const colors = require('colors') diff --git a/package.json b/package.json index 7fd0503..81a809d 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "main": "app.js", "scripts": { "api": "nodemon ./API/returnMultiplicationTables.js", + "start": "node ./API/returnMultiplicationTables.js", "tool": "node app.js" }, "author": "FranP-Code",