Skip to content

Commit ae8abdb

Browse files
committed
auto build & deploy
1 parent 0d9ba26 commit ae8abdb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

watch.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ const delay = 500
1111
function buildCommand () {
1212
const tasks = process.env.GIPOD_TASKS
1313
const port = tasks ? tasks[0]?.env?.PORT || 8080 : 80
14-
return `./watch ${port}`
14+
const switchPort = tasks ? tasks[1]?.env?.PORT || 8888 : 8888
15+
return `./watch.sh ${port} ${switchPort}\n`
1516
}
1617

1718
/**

watch.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
cd ../aegis
22
yarn build
33
curl -s http://localhost:$1/reload
4+
curl -s http://localhost:$2/reload

0 commit comments

Comments
 (0)