Skip to content

Commit

Permalink
feat: activate the watch mode in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
94noni committed Jan 17, 2025
1 parent 5a97367 commit d81a8b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ CMD [ "frankenphp", "run", "--config", "/etc/caddy/Caddyfile" ]
FROM frankenphp_base AS frankenphp_dev

ENV APP_ENV=dev XDEBUG_MODE=off
ENV FRANKENPHP_CONFIG="import dev.worker.Caddyfile"

RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini"

Expand All @@ -63,6 +64,7 @@ RUN set -eux; \
;

COPY --link frankenphp/conf.d/20-app.dev.ini $PHP_INI_DIR/app.conf.d/
COPY --link frankenphp/dev.worker.Caddyfile /etc/caddy/dev.worker.Caddyfile

CMD [ "frankenphp", "run", "--config", "/etc/caddy/Caddyfile", "--watch" ]

Expand Down
5 changes: 5 additions & 0 deletions frankenphp/dev.worker.Caddyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
worker {
file ./public/index.php
env APP_RUNTIME Runtime\FrankenPhpSymfony\Runtime
watch
}

0 comments on commit d81a8b0

Please sign in to comment.