Skip to content

Commit

Permalink
reafactor: change adapater
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Broudoux <[email protected]>
  • Loading branch information
abroudoux committed Oct 13, 2024
1 parent d02c38c commit ee77f09
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 4 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ RUN pnpm install --frozen-lockfile

COPY . .

ENV DATABASE_URL="postgresql://postgres:mysecretpassword@localhost:5432/postgres"
ENV DATABASE_URL="postgresql://postgres:mysecretpassword@better-db:5432/better-db"

RUN pnpm run build

RUN pnpm run generate
RUN pnpm run migrate

EXPOSE 5173

CMD ["pnpm", "run", "dev"]
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"devDependencies": {
"@playwright/test": "^1.47.2",
"@sveltejs/adapter-auto": "^3.2.5",
"@sveltejs/adapter-node": "^5.2.6",
"@sveltejs/kit": "^2.5.28",
"@sveltejs/vite-plugin-svelte": "4.0.0-next.7",
"@types/eslint": "^9.6.1",
Expand Down
107 changes: 105 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import adapter from "@sveltejs/adapter-auto";
import adapter from "@sveltejs/adapter-node";
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";

/**
Expand Down

0 comments on commit ee77f09

Please sign in to comment.