diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 6554c1d..a31acb1 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,26 +1,26 @@ // 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", - // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile - "image": "mcr.microsoft.com/devcontainers/base:jammy", - "features": { - "ghcr.io/devcontainers-contrib/features/node-asdf:0": {}, - "ghcr.io/devcontainers/features/docker-in-docker:2": {} - } + "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": { + "ghcr.io/devcontainers-contrib/features/node-asdf:0": {}, + "ghcr.io/devcontainers/features/docker-in-docker:2": {} + } - // Features to add to the dev container. More info: https://containers.dev/features. - // "features": {}, + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, - // Use 'forwardPorts' to make a list of ports inside the container available locally. - // "forwardPorts": [], + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], - // Use 'postCreateCommand' to run commands after the container is created. - // "postCreateCommand": "uname -a", + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "uname -a", - // Configure tool-specific properties. - // "customizations": {}, + // Configure tool-specific properties. + // "customizations": {}, - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. - // "remoteUser": "root" + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" } diff --git a/Dockerfile b/Dockerfile index c205a28..97eb7d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/startup.sh b/startup.sh index fbc29bb..1801a18 100644 --- a/startup.sh +++ b/startup.sh @@ -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