Skip to content

Commit

Permalink
Move to root fly deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh-mn-yral committed Jan 4, 2024
1 parent 077a86b commit 8409cdb
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
15 changes: 15 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# .dockerignore
.github
node_modules
.dfx
build
dist
.svelte-kit
.env
test-results
playwright-report
playwright/.cache
cypress/videos
cypress/screenshots
cypress/reports
didc
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"wc:build:prod": "PRODUCTION=true npm run build --w @hnn/web-client",
"wc:build:static": "npm run build:static --w @hnn/web-client",
"wc:build:static:prod": "PRODUCTION=true npm run build:static --w @hnn/web-client",
"wc:deploy": "fly deploy --config ./fly.web-client.toml --dockerfile ./Dockerfile.web-client --debug",
"wc:deploy": "fly deploy --config ./wc.fly.toml --dockerfile ./wc.Dockerfile --debug",
"wc:preview": "npm run preview --w @hnn/web-client",
"wc:preview:static": "npm run preview:static --w @hnn/web-client",
"wc:dev": "npm run dev --w @hnn/web-client",
Expand Down
8 changes: 0 additions & 8 deletions packages/web-client/.dockerignore

This file was deleted.

4 changes: 2 additions & 2 deletions packages/web-client/Dockerfile → wc.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN npm install --include=dev
COPY --link . .

# Build application
RUN npm run build
RUN npm run wc:build

# Remove development dependencies
RUN npm prune --omit=dev
Expand All @@ -42,4 +42,4 @@ COPY --from=build /app /app

# Start the server by default, this can be overwritten at runtime
EXPOSE 3000
CMD [ "npm", "run", "start" ]
CMD [ "npm", "run", "wc:start" ]
File renamed without changes.

0 comments on commit 8409cdb

Please sign in to comment.