updating readme

v0.1.5
alseambusher 2015-12-16 03:00:33 -08:00
parent 860e08a336
commit 6b17b7d96b
3 changed files with 11 additions and 3 deletions

View File

@ -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.
![future](http://4.bp.blogspot.com/-gN-wLmhd5Os/VX6fQ5wM2LI/AAAAAAAABcA/_Ej0PqrByBU/s1600/next.gif)
###Separate error log support for every job
![logs](http://alseambusher.github.io/files/crontab_ui_log_feature.gif)
###Contribute
Fork Crontab UI and contribute to it. Pull requests are encouraged.

8
app.js
View File

@ -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() {

View File

@ -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": {