Add schema generation
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
||||
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
|
||||
{
|
||||
"name": "Ubuntu",
|
||||
"name": "AdventureLog",
|
||||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
||||
"image": "mcr.microsoft.com/devcontainers/base:jammy",
|
||||
"features": {
|
||||
|
||||
@@ -16,8 +16,6 @@ RUN npm ci
|
||||
# Build SvelteKit app
|
||||
RUN npm run build
|
||||
|
||||
RUN npm run generate
|
||||
|
||||
# Expose the port that the app is listening on
|
||||
EXPOSE 3000
|
||||
|
||||
|
||||
@@ -17,6 +17,9 @@ echo "Starting AdventureLog"
|
||||
# Wait for the database to start up
|
||||
wait_for_db
|
||||
|
||||
# generate the schema
|
||||
npm run generate
|
||||
|
||||
# Run database migration
|
||||
npm run migrate
|
||||
|
||||
|
||||
Reference in New Issue
Block a user