Sample PHP application with scheduled tasks
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Dockerfile
Procfile
README.md
composer.json
composer.lock
cron.php
docker-compose.yml
inc.php
index.php

README.md

Sample application using PHP and a task scheduler

This application is a simple PHP application using the package cron/cron installed from Composer

Application → https://sample-php-cron.scalingo.io/

Processes

One additional type of process will be created from the Procfile which defines how to start the task scheduler:

clock: php cron.php

Running locally

First install the dependencies:

$ docker run --rm -it --volume $(pwd):/app --user $(id -u):$(id -g) composer install

Then run the needed containers:

$ docker-compose up

References