Skip to content

Commit 2c7154f

Browse files
committed
changed settings for cloud deployement
1 parent 14123bb commit 2c7154f

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ It also uses Gulp for running task and TsLint.The seed application is built over
2020
## Steps to Run
2121
```sh
2222
npm install <= install all the npm Dependencies
23-
npm run build <= build client and server application.
24-
npm run start <= start the Nodemon and watch for changes.
23+
npm run deploy <= start the Nodemon and watch for changes.
2524
```
2625

2726
## Global packages

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"clean": "gulp clean",
77
"compile": "gulp compile",
88
"build": "gulp build",
9-
"start": "concurrent --kill-others \"gulp watch\" \"gulp start\"",
10-
"postinstall": "gulp installTypings",
9+
"deploy": "concurrent --kill-others \"gulp watch\" \"gulp start\"",
10+
"postinstall": "gulp installTypings && gulp build",
1111
"test": "echo \"Error: no test specified\" && exit 1"
1212
},
1313
"repository": {

server/src/config/constants/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
class Constants {
6-
static DB_CONNECTION_STRING: string = "mongodb://localhost:27017/quickStart"
6+
static DB_CONNECTION_STRING: string = process.env.NODE_ENV === 'production' ? process.env.dbURI : "mongodb://localhost:27017/quickStart"
77
}
88
Object.seal(Constants);
99
export = Constants;

0 commit comments

Comments
 (0)