• Download
        • Open-Source
        • Documentation
          • Developer guide
          • API
          • Online help
          • External
            • ACE Editor
            • Yii2 Twig
            • Publication Module
          • Home
          • Docs
          • Tutorials
          • Cronjobs

          Cronjobs

          Cron runs in the PHP container, and the Docker enviornment is exported to a file /root/export-env on container startup.

          Example job:

          #!/bin/bash
          . /root/export-env
          sleep $(unique-number.sh 600) && /usr/local/bin/php /app/yii audit/cleanup --interactive=0 --entry --age=7
          

          phd5 - guide

          Introduction

          • About
          • Features
          • Requirements
          • Basic concepts
          • Demos
          • Tutorial

          Development

          Setup
          • Installation
          • Configuration
          Usage
          • CLI
          • Application Console
          • Web-backend
          • Web-frontend
          • Logging
          • Extensions
          • Conventions
          • Troubleshooting
          Testing
          • Test suites
          • QA

          Deployment

          • CI
          • Staging and Production

          Tutorials

          Development
          • Users and RBAC
          • Data migrations
          • Data export
          • Code generation
          • Documentation generation
          • Working with local or remote filesystems
          • Creating PDFs
          • Cronjobs
          • Working with extensions in vendor
          • Update application packages
          • Upgrading applications
          • Xdebug
          • Testing browsers
          • Travis CI
          • Gitlab CI
          Frontend
          • Asset bundles
          • Asset compression
          • Preloader
          • SEO
          • Image proxy
          • JSON Editor
          Database
          • Working with other databases
          • Create migrations from MySQL dumps
          Docker
          • Demo: Play with Docker
          • Docker host cleanup
          • Docker Machine
          • Docker webserver
          • OpenSearchServer
          • Testing Yii 2.0 extensions
          Other
          • Glossary
          • Toolchain
          • Classic PHP installation
          • Vagrant
          • History



          Help us to improve the documentation, fork this page.





          dmstr.io

          diemeisterei GmbH
          Amtsgericht Stuttgart, HRB 720793
          UstID-Nr.: DE 814 703 851

          prod

          phd-dmstr-io

          Application Version phd-dmstr-io-5.2.0-0-g993f64c
          Virtual Host phd.dmstr.io
          Hostname a1342846c5a5

          Build with phd5


          Backend