Go to file
Suresh Alse ee113b139a
Add .circleci/config.yml (#154)
2021-05-20 14:04:02 -07:00
.circleci Add .circleci/config.yml (#154) 2021-05-20 14:04:02 -07:00
.github Update ISSUE_TEMPLATE.md 2016-12-22 08:52:01 +05:30
README Update nginx.md 2019-04-25 15:54:17 -07:00
bin mailing stdout and stderr as attachments 2016-12-14 18:42:19 +05:30
config adding better default mail config 2016-12-14 19:13:44 +05:30
crontabs Added error log support 2015-12-16 02:04:44 -08:00
public Saved to crontab indicator 2020-06-09 21:12:42 +05:30
tests version upgrade 0.3.14 and integrate with circle ci 2021-05-20 13:59:48 -07:00
views Merge branch 'feature/base-url' of https://github.com/AndreiArdelean1/crontab-ui into AndreiArdelean1-feature/base-url 2021-05-20 13:37:30 -07:00
.dockerignore Updating dockerignore 2020-06-08 15:44:05 +05:30
.gitignore Added error log support 2015-12-16 02:04:44 -08:00
Dockerfile [add] Tzdata to configure timezone on build (#145) 2021-05-20 11:22:59 -07:00
LICENSE.md Rename LICENSE.txt to LICENSE.md 2016-04-28 11:38:36 -07:00
Makefile version bump 0.3.13 2020-07-10 19:26:32 +05:30
README.md Update readme with info about BASE_URL 2021-05-20 13:44:10 -07:00
app.js Merge branch 'feature/base-url' of https://github.com/AndreiArdelean1/crontab-ui into AndreiArdelean1-feature/base-url 2021-05-20 13:37:30 -07:00
app.json basic structure 2015-06-11 22:47:06 +05:30
crontab.js Code cleanups inspired by https://github.com/alseambusher/crontab-ui/pull/140 2021-05-20 12:54:40 -07:00
docker-compose.yml Add Docker Compose YAML File 2018-11-02 16:59:05 -05:00
package-lock.json version upgrade 0.3.14 and integrate with circle ci 2021-05-20 13:59:48 -07:00
package.json version upgrade 0.3.14 and integrate with circle ci 2021-05-20 13:59:48 -07:00
restore.js Fixing paths in restore.js 2020-06-09 21:11:47 +05:30
routes.js Add BASE_URL environment variables 2020-09-22 21:40:56 +03:00
supervisord.conf Using the /etc/crontabs/root file 2017-07-19 10:00:17 -05:00

README.md

Crontab UI

Donate npm npm npm npm npm

Editing the plain text crontab is error prone for managing jobs, e.g., adding jobs, deleting jobs, or pausing jobs. A small mistake can easily bring down all the jobs and might cost you a lot of time. With Crontab UI, it is very easy to manage crontab. Here are the key features of Crontab UI.

flow

  1. Easy setup. You can even import from existing crontab.
  2. Safe adding, deleting or pausing jobs. Easy to maintain hundreds of jobs.
  3. Backup your crontabs.
  4. Export crontab and deploy on other machines without much hassle.
  5. Error log support.
  6. Mailing and hooks support.

Read this to see more details.

Setup

Get latest node from here. Then,

npm install -g crontab-ui
crontab-ui

If you need to set/use an alternative host, port OR base url, you may do so by setting an environment variable before starting the process:

HOST=0.0.0.0 PORT=9000 BASE_URL=/alse crontab-ui

By default, db, backups and logs are stored in the installation directory. It is recommended that it be overriden using env variable CRON_DB_PATH. This is particularly helpful in case you update crontab-ui.

CRON_DB_PATH=/path/to/folder crontab-ui

If you need to apply basic HTTP authentication, you can set user name and password through environment variables:

BASIC_AUTH_USER=user BASIC_AUTH_PWD=SecretPassword

Also, you may have to set permissions for your node_modules folder. Refer this.

If you need to autosave your changes to crontab directly:

crontab-ui --autosave

Docker

You can use crontab-ui with docker. You can use the prebuilt images in the dockerhub

docker run -d -p 8000:8000 alseambusher/crontab-ui

You can also build it yourself if you want to customize, like this:

git clone https://github.com/alseambusher/crontab-ui.git
cd crontab-ui
docker build -t alseambusher/crontab-ui .
docker run -d -p 8000:8000 alseambusher/crontab-ui

If you want to use it with authentication, You can pass BASIC_AUTH_USER and BASIC_AUTH_PWD as env variables

docker run -e BASIC_AUTH_USER=user -e BASIC_AUTH_PWD=SecretPassword -d -p 8000:8000 alseambusher/crontab-ui 

You can also mount a folder to store the db and logs.

mkdir -p crontabs/logs
docker run --mount type=bind,source="$(pwd)"/crontabs/,target=/crontab-ui/crontabs/ -d -p 8000:8000 alseambusher/crontab-ui

Resources

Adding, deleting, pausing and resuming jobs.

Once setup Crontab UI provides you with a web interface using which you can manage all the jobs without much hassle.

basic

Import from existing crontab

Import from existing crontab file automatically. import

Backup and restore crontab

Keep backups of your crontab in case you mess up. backup

Export and import crontab on multiple instances of Crontab UI.

If you want to run the same jobs on multiple machines simply export from one instance and import the same on the other. No SSH, No copy paste!

export

But make sure to take a backup before importing.

Separate error log support for every job

logs

Donate

Like the project? Buy me a coffee!

Contribute

Fork Crontab UI and contribute to it. Pull requests are encouraged.

License

MIT