Files
Reactive-Resume/.gitpod.yml
Amruth Pillai f21e1caed1 trying this now
2022-12-16 15:09:43 +01:00

37 lines
814 B
YAML

tasks:
- name: Run a local PostgreSQL Database
command: docker run --name postgres -e POSTGRES_PASSWORD=postgres -d postgres
- name: Restore .env file, or create a new one
command: |
if [ -f .env ]; then
echo "Found .env in workspace"
else
if [ -z "${DOTENV}" ]; then
echo "Setting example .env"
cp .env.gitpod .env
else
echo "Restoring .env from Gitpod"
echo "${DOTENV}" | base64 -d > .env
fi
fi
- name: Set up dependencies, and run the development server
init: pnpm install
command: pnpm dev
ports:
# PostgreSQL
- port: 5432
visibility: private
# Client
- port: 3100
visibility: public
onOpen: ignore
# Client
- port: 3000
visibility: public
onOpen: open-browser