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. Invoice Ninja
  3. Path To Project on Cloudron

Path To Project on Cloudron

Scheduled Pinned Locked Moved Solved Invoice Ninja
6 Posts 3 Posters 1.2k 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.
    • T Offline
      T Offline
      Telos One
      wrote on last edited by
      #1

      We are trying to get the laravel cron set up and the instruction on the IN site are to add. this line to crontab:

      "* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1"

      On a Cloudron install, what is the correct value for "/path-to-your-project"?

      fbartelsF 1 Reply Last reply
      0
      • T Telos One

        We are trying to get the laravel cron set up and the instruction on the IN site are to add. this line to crontab:

        "* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1"

        On a Cloudron install, what is the correct value for "/path-to-your-project"?

        fbartelsF Offline
        fbartelsF Offline
        fbartels
        App Dev
        wrote on last edited by
        #2

        Hi @telos-one,

        by definition the code of apps running on cloudron is often located in /app/code.

        But in the end a cron job for an app should be defined in the apps manifest. How this needs to look is documented at https://docs.cloudron.io/custom-apps/addons/#scheduler

        T 1 Reply Last reply
        0
        • fbartelsF fbartels

          Hi @telos-one,

          by definition the code of apps running on cloudron is often located in /app/code.

          But in the end a cron job for an app should be defined in the apps manifest. How this needs to look is documented at https://docs.cloudron.io/custom-apps/addons/#scheduler

          T Offline
          T Offline
          Telos One
          wrote on last edited by
          #3

          @fbartels said in Path To Project on Cloudron:

          https://docs.cloudron.io/custom-apps/addons/#scheduler

          Unfortunately I am not a developer so your answer is way over my head.

          Ill try /app/code and see what happens 🙂

          1 Reply Last reply
          0
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #4

            actually the app package does not use cron but uses the artisan queue:work instead managed by supervisor. This means tasks will be processed much faster.
            What made you try to add the cron job?

            T 1 Reply Last reply
            0
            • nebulonN nebulon

              actually the app package does not use cron but uses the artisan queue:work instead managed by supervisor. This means tasks will be processed much faster.
              What made you try to add the cron job?

              T Offline
              T Offline
              Telos One
              wrote on last edited by
              #5

              @nebulon - Its in the instructions in the Cloudron thread and in the Invoice Ninja docs.

              We are trying to migrate form one self hosted instance to the new v5 instance and we are getting an error when we try and the red alert triangle at the bottom of the v5 dashboard saying "The CRONS need to be enabled."

              I am now seeing this one that mentions laravel, the docs are a bit confusing and circular between Cloudron and Invoice Ninja.

              https://invoiceninja.github.io/docs/self-host-troubleshooting/#cron-not-running-queue-not-running

              I am surprised this is an issue, I figured stuff like CRON would be handled in the install from Cloudron like v4

              nebulonN 1 Reply Last reply
              0
              • T Telos One

                @nebulon - Its in the instructions in the Cloudron thread and in the Invoice Ninja docs.

                We are trying to migrate form one self hosted instance to the new v5 instance and we are getting an error when we try and the red alert triangle at the bottom of the v5 dashboard saying "The CRONS need to be enabled."

                I am now seeing this one that mentions laravel, the docs are a bit confusing and circular between Cloudron and Invoice Ninja.

                https://invoiceninja.github.io/docs/self-host-troubleshooting/#cron-not-running-queue-not-running

                I am surprised this is an issue, I figured stuff like CRON would be handled in the install from Cloudron like v4

                nebulonN Offline
                nebulonN Offline
                nebulon
                Staff
                wrote on last edited by nebulon
                #6

                @telos-one as far as I can tell from my previous investigation, this is just a warning initially for some time and it goes away. The tasks as such are run.

                Anyways I will lock this topic, so we don't end up with 2 threads about the same thing.

                1 Reply Last reply
                0
                • nebulonN nebulon locked this topic 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