Skip to content

Commit

Permalink
Set the URI when running drush cron
Browse files Browse the repository at this point in the history
  • Loading branch information
azinck committed Jul 26, 2022
1 parent be01ba4 commit 3e75583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/drupal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ RUN chmod +x /webcms-entrypoint
# Replace the default crontab with one that runs Drush every five minutes. By
# default, cron is not run (since there is no systemd equivalent in containers),
# but we use this in the Drush ECS service definition.
RUN echo '*/5 * * * * drush cron 2>&1' | crontab -
RUN echo '*/5 * * * * drush cron --uri="${WEBCMS_SITE_URL}" 2>&1' | crontab -

# Wrap the entrypoint script with tini to allow graceful signal handling
ENTRYPOINT ["tini", "--", "/webcms-entrypoint"]

0 comments on commit 3e75583

Please sign in to comment.