Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. LAMP
  3. Create cron in LAMP

Create cron in LAMP

Scheduled Pinned Locked Moved Solved LAMP
crontabcronlaravelartisanlamp
5 Posts 3 Posters 822 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • matix131997M Offline
    matix131997M Offline
    matix131997
    wrote on last edited by
    #1

    Hello,

    Earlier I searched the forums for a solution on how to do this, but I could not find, so I am writing a separate topic.

    I have an application that runs in Laravel and I want to add a CRON, but according to the instructions I have so on known panels:

    php /change/this/path/artisan schedule:run >> /dev/null 2>&1
    

    I want to execute in Cloudron. The question is whether such code that I did is correct?

    *    *    *    *    * /app/data/website/artisan schedule:run >> /dev/null 2>&1
    
    1 Reply Last reply
    0
    • BrutalBirdieB Offline
      BrutalBirdieB Offline
      BrutalBirdie
      Partner
      wrote on last edited by
      #2

      You could use the scheduler addon in the manifest or you add the cron manually in in the app 6996d740-1268-43e3-90af-c05582b39439-image.png

      Like my work? Consider donating a drink. Cheers!

      matix131997M 1 Reply Last reply
      0
      • BrutalBirdieB BrutalBirdie

        You could use the scheduler addon in the manifest or you add the cron manually in in the app 6996d740-1268-43e3-90af-c05582b39439-image.png

        matix131997M Offline
        matix131997M Offline
        matix131997
        wrote on last edited by
        #3

        @BrutalBirdie
        cron.png

        I just have it added there in the "cron" tab and I don't know if it works properly. Is it possible to check ?

        1 Reply Last reply
        0
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          @matix131997 make the command as echo "Running cron" && /app/data/website/artisan ... Then you will see it in the logs.

          1 Reply Last reply
          1
          • matix131997M Offline
            matix131997M Offline
            matix131997
            wrote on last edited by
            #5

            Thanks, it works!

            1 Reply Last reply
            1
            • nebulonN nebulon marked this topic as a question on
            • nebulonN nebulon has marked this topic as solved on
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Bookmarks
            • Search