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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Path To Project on Cloudron

    Invoice Ninja
    3
    6
    320
    Loading More Posts
    • 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
      Telos One last edited by

      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"?

      fbartels 1 Reply Last reply Reply Quote 0
      • fbartels
        fbartels App Dev @Telos One last edited by

        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 Reply Quote 0
        • T
          Telos One @fbartels last edited by

          @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 Reply Quote 0
          • nebulon
            nebulon Staff last edited by

            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 Reply Quote 0
            • T
              Telos One @nebulon last edited by

              @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

              nebulon 1 Reply Last reply Reply Quote 0
              • nebulon
                nebulon Staff @Telos One last edited by nebulon

                @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 Reply Quote 0
                • Locked by  nebulon nebulon 
                • First post
                  Last post
                Powered by NodeBB