Skip to content

Commit

Permalink
Introduce a 5s delay before opening the preview to give the server ti…
Browse files Browse the repository at this point in the history
…me to be ready
  • Loading branch information
jankeromnes committed Feb 4, 2021
1 parent 90979d0 commit 2f01570
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ tasks:
- init: npm install
command: |
export CLIENT_URL="$(gp url 35729)/livereload.js?snipver=1&port=443"
{ gp await-port 5000 && sleep 5 && gp preview $(gp url 5000) & } &> /dev/null
gp open src/App.svelte
npm run dev
ports:
- port: 5000
onOpen: open-preview
onOpen: ignore
- port: 35729
onOpen: ignore
vscode:
Expand Down

0 comments on commit 2f01570

Please sign in to comment.