Cronify
Cronify
Simply monitor your Cron
Table of Contents
1.-
<ul dir="auto"> <li> 3.1. <a rel="nofollow noopener" target="_blank" href="#Prerequisites">Prerequisites</a> </li> <li> 3.2. <a rel="nofollow noopener" target="_blank" href="#Cloneandinstall">Clone and install</a> </li> <li> 3.3. <a rel="nofollow noopener" target="_blank" href="#CreateanewUser">Create a new User</a> </li> </ul>
-
<ul dir="auto"> <li> 4.1. <a rel="nofollow noopener" target="_blank" href="#CreateanewApp">Create a new App</a> </li> <li> 4.2. <a rel="nofollow noopener" target="_blank" href="#CreateanewJob">Create a new Job</a> </li> <li> 4.3. <a rel="nofollow noopener" target="_blank" href="#GetCronCodesnippet">Get Cron Code snippet</a> </li> </ul>
-
<ul dir="auto"> <li> 5.1. <a rel="nofollow noopener" target="_blank" href="#Createadocker-compose.yml"> Create a docker-compose.yml</a> </li> <li> 5.2. <a rel="nofollow noopener" target="_blank" href="#Startcontainers">Start containers</a> </li> <li> 5.3. <a rel="nofollow noopener" target="_blank" href="#Launchyourbrowserandhavefun">Launch your browser and have fun !</a> </li> </ul>
What is cronify ?
2.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
How to install the app ?
3.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.
Prerequisites
3.1.Clone and install
3.2.git clone https://github.com/yoanbernabeu/Cronify.git cd Cronify make install
Create a new User
3.3.User creation is possible from the command line.
symfony console app:create-user username@mail.com password
How to use ?
4.Only THREE steps to get your cron job monitoring addresses !
Create a new App
4.1.Create a new Job
4.2.Get Cron Code snippet
4.3.How to quickly test Cronify?
5.We offer you a quick method to test the application with the use of a preconfigured Docker container.
Create a docker-compose.yml
5.1.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: yoanbernabeu/cronify:latest ports: - "8080:80" environment: DATABASE_URL: postgres://${POSTGRES_USER:-symfony}:${POSTGRES_PASSWORD:-ChangeMe}@database:5432/${POSTGRES_DB:-app} volumes: db-data:
Start containers
5.2.docker-compose up -d
Launch your browser and have fun !
5.3.- Go to http://localhost:8080
-
Login with :
- username: demo@demo.com
- password: password
Build your own Docker image
6.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
License
7.See the bundled LICENSE file.