Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ArrowJustDoIt/crontab
Crontab extension for laravel-admin
https://github.com/ArrowJustDoIt/crontab
Last synced: about 1 month ago
JSON representation
Crontab extension for laravel-admin
- Host: GitHub
- URL: https://github.com/ArrowJustDoIt/crontab
- Owner: ArrowJustDoIt
- License: mit
- Created: 2019-03-20T05:53:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-20T06:43:31.000Z (about 4 years ago)
- Last Synced: 2024-07-05T05:43:05.876Z (5 months ago)
- Language: PHP
- Size: 335 KB
- Stars: 34
- Watchers: 2
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-laravel-admin - crontab - 定时任务扩展插件,通过此插件定时执行shell、sql以及访问指定链接 (扩展包 / 工具类扩展包)
README
Crontab extension for laravel-admin
======[Crontab](https://github.com/ArrowJustDoIt/Crontab)是一个laravel-admin后台的定时任务扩展插件,你可以通过此插件定时执行shell、sql以及访问指定链接
[dcat-admin版本](https://github.com/ArrowJustDoIt/dcat-admin-crontab-extension)
## 截图
![crontab列表](https://raw.githubusercontent.com/ArrowJustDoIt/crontab/master/crontab_list.png)![crontab创建](https://raw.githubusercontent.com/ArrowJustDoIt/crontab/master/crontab_create.png)
![crontablog列表](https://raw.githubusercontent.com/ArrowJustDoIt/crontab/master/crontab_log_list.png)
![crontablog详情](https://raw.githubusercontent.com/ArrowJustDoIt/crontab/master/crontab_log_detail.png)
## 安装```bash
composer require arrowjustdoit/crontab
php artisan migrate
```## 配置
在`config/admin.php`文件的`extensions`配置部分,加上属于这个扩展的配置
```php'extensions' => [
'crontab' => [
// 如果要关掉这个扩展,设置为false
'enable' => true,
]
]```
在服务器中配置crontab
```
crontab -e //回车
* * * * * php /your web dir/artisan autotask:run >>/home/crontab.log 2>&1 //>>后面为日志文件保存地址,可加可不加
```## 访问
```
https://your domain/admin/crontabs #定时任务列表
https://your domain/admin/crontabLogs #定时任务日志列表
```## License
Licensed under [The MIT License (MIT)](LICENSE).