You've already forked crontab-ui
mirror of
https://github.com/alseambusher/crontab-ui.git
synced 2025-12-15 11:43:58 +08:00
updating readme
This commit is contained in:
@@ -9,6 +9,7 @@ Editing the plain text crontab is error prone for managing jobs, e.g., adding jo
|
||||
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 (NEW)
|
||||
|
||||
Read [this](http://lifepluslinux.blogspot.in/2015/06/crontab-ui-easy-and-safe-way-to-manage.html) to see more details.
|
||||
|
||||
@@ -39,6 +40,9 @@ But make sure to take a backup before importing.
|
||||
###See when the job is going to run next.
|
||||

|
||||
|
||||
###Separate error log support for every job
|
||||

|
||||
|
||||
###Contribute
|
||||
Fork Crontab UI and contribute to it. Pull requests are encouraged.
|
||||
|
||||
|
||||
8
app.js
8
app.js
@@ -133,8 +133,12 @@ app.get(routes.import_crontab, function(req, res) {
|
||||
})
|
||||
|
||||
app.get(routes.logger, function(req, res) {
|
||||
console.log(crontab.log_folder)
|
||||
res.sendFile(crontab.log_folder +"/"+req.query.id+".log");
|
||||
var fs = require("fs");
|
||||
_file = crontab.log_folder +"/"+req.query.id+".log";
|
||||
if (fs.existsSync(_file))
|
||||
res.sendFile(_file);
|
||||
else
|
||||
res.end("No errors logged yet");
|
||||
})
|
||||
|
||||
app.listen(app.get('port'), function() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "crontab-ui",
|
||||
"version": "0.1.4",
|
||||
"version": "0.1.5",
|
||||
"description": "Easy and safe way to manage your crontab file",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user