Skip to content

Commit

Permalink
[TASK] Fix make scheduler cmd for TYPO3 >6.2
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
tbal committed Jan 21, 2017
1 parent 7583f1f commit 2794136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ root:
#############################

scheduler:
docker exec -it $$(docker-compose ps -q app) typo3/cli_dispatch.phpsh scheduler $(ARGS)
docker-compose exec --user application app /bin/bash -c '"$$WEB_DOCUMENT_ROOT"/typo3/cli_dispatch.phpsh scheduler $(ARGS)'

#############################
# Argument fix workaround
Expand Down

0 comments on commit 2794136

Please sign in to comment.