893 B
893 B
Deploy CA Lab Studio
Deploy glitch_voxel_automata_lab, not glitch_voxel_automata.
This app is the CA Lab Studio service:
- Express API at
/api/ca/* - React admin app at
/admin - React viewer/recorder routes at
/view/* - Postgres database via
DATABASE_URL
Build
nvm use 20
npm --prefix backend ci
npm run build
The build creates:
backend/dist/server.js
backend/public/admin/index.html
backend/public/admin/assets/*
Start
DATABASE_URL=postgres://... PORT=3100 npm start
Run migrations before starting or during release:
DATABASE_URL=postgres://... npm run migrate
Docker
docker build -t ca-lab-studio .
docker run --rm -p 3100:3100 \
-e DATABASE_URL=postgres://... \
ca-lab-studio
The container serves the app at:
http://localhost:3100/admin
http://localhost:3100/view/decks/:deckId