Skip to content

Commit

Permalink
fix: make dota package bun watch reloadable
Browse files Browse the repository at this point in the history
  • Loading branch information
Geczy committed May 20, 2024
1 parent 08201d7 commit 9fe97c9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
9 changes: 7 additions & 2 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@ services:

dota:
image: "ghcr.io/dotabod/dota:v2.16"
volumes:
- $PWD/packages/dota/src:/app/packages/dota/src
develop:
watch:
- action: sync
path: $PWD/packages/dota/src
target: /app/packages/dota/src
- action: rebuild
path: $PWD/packages/dota/package.json
ports:
- "5120:5120"

Expand Down
1 change: 1 addition & 0 deletions packages/Dockerfile.dota
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ COPY --from=builder /app/node_modules ./node_modules

# Dota app
COPY --from=builder /app/$BUILD_CONTEXT/dist $BUILD_CONTEXT/dist/
COPY --from=builder /app/$BUILD_CONTEXT/src $BUILD_CONTEXT/src/
COPY --from=builder /app/$BUILD_CONTEXT/locales $BUILD_CONTEXT/locales/
COPY --from=builder /app/$BUILD_CONTEXT/package.json ./$BUILD_CONTEXT/

Expand Down
2 changes: 1 addition & 1 deletion runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ login() {
up() {
docker_login
echo "Starting server with database $NODE_ENV at $dockerfile"
docker_command up -d "$app"
docker_command watch "$app"
}

update() {
Expand Down

0 comments on commit 9fe97c9

Please sign in to comment.