Skip to content

Commit

Permalink
separate generate command - so it always runs even if none migrations…
Browse files Browse the repository at this point in the history
… (in case of opening someone elses repository)
  • Loading branch information
mcgrealife authored Mar 8, 2023
1 parent f5d305e commit 0b3b54f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ tasks:
curl --proto '=https' --tlsv1.2 -sSf https://sh.edgedb.com | sh -s -- -y -v
edgedb project init --non-interactive
mv default.esdl dbschema
edgedb migration create --non-interactive && edgedb migration apply && npm run generate
edgedb migration create --non-interactive && edgedb migration apply
npm run generate
gp open dbschema/default.esdl
command: |
if test -e /home/gitpod/.local/bin/edgedb; then echo 'EdgeDB CLI installed successfully' && gp open src/index.ts; else gp open restart.md && curl --proto '=https' --tlsv1.2 -sSf https://sh.edgedb.com | sh -s -- -y -v && edgedb project init --server-instance=edgedb --non-interactive; fi
if test -e /home/gitpod/.local/bin/edgedb; then echo 'EdgeDB CLI installed successfully' && gp open src/index.ts; else gp open restart.md && curl --proto '=https' --tlsv1.2 -sSf https://sh.edgedb.com | sh -s -- -y -v && edgedb project init --server-instance=edgedb --non-interactive ; fi
vscode:
extensions:
- matt-rudge.auto-open-preview-panel
Expand Down

0 comments on commit 0b3b54f

Please sign in to comment.