Skip to content

Commit d9321bb

Browse files
tbalmblaschke
authored andcommitted
[TASK] Fix make scheduler cmd for TYPO3 >6.2 (#162)
- Determine path to typo3/cli_dispatch.phpsh by looking up WEB_DOCUMENT_ROOT env variable which is defined in etc/environment.yml and automatically available in the app container. This makes the 'make scheduler' command work for all TYPO3 versions. - Run container as application user to avoid permission problems. - Use docker-compose exec instead of docker exec, which speeds up the command call, because there is no need to determine the container id of the app container anymore. Fixes #139
1 parent 123dfa6 commit d9321bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ cli:
8383
docker-compose run --rm --user application app cli $(ARGS)
8484

8585
scheduler:
86-
docker exec -it $$(docker-compose ps -q app) typo3/cli_dispatch.phpsh scheduler $(ARGS)
86+
# TODO: remove the workaround "; (exit $?)" when https://github.com/docker/compose/issues/3379 has been fixed
87+
docker-compose exec --user application app /bin/bash -c '"$$WEB_DOCUMENT_ROOT"typo3/cli_dispatch.phpsh scheduler $(ARGS); (exit $$?)'
8788

8889
#############################
8990
# Argument fix workaround

0 commit comments

Comments
 (0)