Simply monitor your Cron
-
- 3.1. Prerequisites
- 3.2. Clone and install
- 3.3. Create a new User
-
- 4.1. Create a new App
- 4.2. Create a new Job
- 4.3. Get Cron Code snippet
Cronify is a simple tool to monitor the execution of your cron jobs.
The use is super simple:
- Declare one or more applications
- Declare one or more jobs for your applications
- For each job, you only have to touch three addresses to log the execution:
- An address to start a cron
- An address to stop a cron
- An address to indicate an error
Cronify is a simple Symfony/PHP/PostgreSQL application.
This documentation offers a simplified installation FOR DEVELOPMENT ONLY with Docker. You can do without it if you already have PostgreSQL.
git clone https://github.com/hamza-webdev/Cronify.git
cd Cronify
make install
User creation is possible from the command line.
symfony console app:create-user [email protected] password
- Il faut installer la version de php-8.0 ou superieur
3.5 if you had thir Error: PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.2". You are running 7.4.26. in /root/.composer/vendor/composer/platform_check.php on line 24
symfony local:php:list
voir dans le tableau quel version de php est selectionné si c 'est pas la bonne version php 8. alors creer un ficher dans la racine de projet .php-version et dedans ecrire just le numero de version ex: 8.0.1 ou un fichier nommé .platform.app.yaml est dedans on met la version de php
Only THREE steps to get your cron job monitoring addresses !
We offer you a quick method to test the application with the use of a preconfigured Docker container.
docker build . -f ./docker/Dockerfile -t demo-cronify
version: "3"
services:
database:
image: postgres:${POSTGRES_VERSION:-13}-alpine
environment:
POSTGRES_DB: ${POSTGRES_DB:-app}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-ChangeMe}
POSTGRES_USER: ${POSTGRES_USER:-symfony}
volumes:
- db-data:/var/lib/postgresql/data:rw
app:
image: hamzabedwi/cronify:latest
ports:
- "8080:80"
environment:
DATABASE_URL: postgres://${POSTGRES_USER:-symfony}:${POSTGRES_PASSWORD:-ChangeMe}@database:5432/${POSTGRES_DB:-app}
volumes:
db-data:
docker-compose up -d
- Go to http://localhost:8080
- Login with :
- username: [email protected]
- password: password
If you want to build your own Docker image, we provide a make command that you need to adapt to your context.
Do not run the command without modifications, you would not have the rights to upload the image to the Docker Hub.
make docker-build-and-push
See the bundled LICENSE file.
- erreur: Unable to create the storage directory (/var/www/var/cache/dev/profiler)
solution: se connecte au contaier app ensuite tapez cette cmde
chown -R www-data:www-data var