Skip to content

Commit 980a9e7

Browse files
committedAug 14, 2024·
GRAL-4283 review changes
1 parent 87f77d7 commit 980a9e7

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed
 

‎apps/pipedrive-hello-world-glitch/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ Follow the instructions in the [Tutorial](https://developers.pipedrive.com/tutor
1414
- Create a test app in [Developer Hub](https://app.pipedrive.com/developer-hub) with the following callback URL: http://localhost:3000/auth/pipedrive/callback
1515
- Run npm install
1616
- Rename config.example.js to config.js and edit the clientID and clientSecret values
17-
- Run node index.js and open http://localhost:3000/
17+
- Run `npm run dev` and open http://localhost:3000/

‎apps/pipedrive-hello-world-glitch/index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,8 @@ app.get('/deals/:id', async (req, res) => {
8787

8888
app.listen(process.env.PORT, () => console.log(`App listening on port ${process.env.PORT}`));
8989

90-
console.log(`🟢 App has started. \n🔗 Live URL: https://${process.env.PROJECT_DOMAIN}.glitch.me`);
90+
if (process.env.IS_LOCAL === 'true') {
91+
console.log(`🟢 App has started. \n🔗 Development URL: http://localhost:3000`);
92+
} else {
93+
console.log(`🟢 App has started. \n🔗 Live URL: https://${process.env.PROJECT_DOMAIN}.glitch.me`);
94+
}

‎apps/pipedrive-hello-world-glitch/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
},
1212
"main": "index.js",
1313
"scripts": {
14-
"start": "node index.js"
14+
"start": "node index.js",
15+
"dev": "IS_LOCAL=true PORT=3000 node index.js"
1516
},
1617
"author": "Siim Kibus",
1718
"license": "ISC",

0 commit comments

Comments
 (0)
Please sign in to comment.