Coder Social home page Coder Social logo

crontab's Introduction

Crontab extension for laravel-admin

Crontab是一个laravel-admin后台的定时任务扩展插件,你可以通过此插件定时执行shell、sql以及访问指定链接

dcat-admin版本

截图

crontab列表

crontab创建

crontablog列表

crontablog详情

安装

composer require arrowjustdoit/crontab
php artisan migrate

配置

config/admin.php文件的extensions配置部分,加上属于这个扩展的配置

    '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).

crontab's People

Contributors

arrowjustdoit avatar demdaysao avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.