We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a78962d commit 20fa2ffCopy full SHA for 20fa2ff
watch.mjs
@@ -9,9 +9,12 @@ const dir = './src'
9
const delay = 500
10
11
function buildCommand () {
12
- const tasks = JSON.parse(process.env.GIPOD_TASKS)
13
- const port = tasks ? tasks[0]?.env?.PORT || 8080 : 80
14
- const switchPort = tasks ? tasks[1]?.env?.PORT || 8888 : 8888
+ // below fails randomly😡
+ // const tasks = JSON.parse(process.env.GITPOD_TASKS.trim())
+ // const port = tasks ? tasks[0]?.env?.PORT || 8080 : 80
15
+ // const switchPort = tasks ? tasks[1]?.env?.PORT || 8888 : 8888
16
+ const port = /linux/i.test(os.platform()) ? 8080 : 80
17
+ const switchPort = 8888
18
return `./watch.sh ${port} ${switchPort}`
19
}
20
0 commit comments