Skip to content

Commit

Permalink
chore: add gitpod config (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaa006bd authored Aug 2, 2023
1 parent f2e33a3 commit f9f1de7
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
image: gitpod/workspace-full-vnc:latest

tasks:
- name: Setup
before: |
nvm install 20
nvm use 20
npm install -g pnpm@8
nvm alias default 20
echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix
init: |
pnpm install
cp .env.sample .env
command: |
git config pull.rebase false
gp sync-done setup
exit 0
- name: Run app
before: |
gp sync-await setup
nvm use default
command: |
pnpm start
- name: Run backend
before: |
gp sync-await setup
command: |
uvicorn pyserver:app --reload --app-dir=ai
vscode:
extensions:
- editorconfig.editorconfig
- dbaeumer.vscode-eslint
- esbenp.prettier-vscode
- Vue.volar

ports:
- name: App
port: 5137
- name: API
port: 8080
onOpen: ignore

0 comments on commit f9f1de7

Please sign in to comment.