build and run project finally, in gitpod

This commit is contained in:
Amruth Pillai
2022-12-16 16:52:37 +01:00
parent 1919d79e43
commit d47d5dd819

View File

@ -6,16 +6,23 @@ tasks:
command: | command: |
pnpm install pnpm install
pnpm dlx playwright install --with-deps chromium pnpm dlx playwright install --with-deps chromium
gp sync-done dependencies gp sync-done deps
- name: Generate Environment Variables - name: Generate Environment Variables
init: gp sync-await dependencies init: gp sync-await deps
command: | command: |
if [ -f .env ]; then if [ -f .env ]; then
echo "Found .env in workspace, skipping generation" echo "Found .env in workspace, skipping generation"
else else
pnpm generate-env pnpm generate-env
fi fi
gp sync-done env
- name: Build and Run Project
init: gp sync-await env
command: |
pnpm build
pnpm start
ports: ports:
# PostgreSQL # PostgreSQL