Home Forums Support setting up cron

This topic contains 3 replies, has 3 voices, and was last updated by  intradesign 1 year, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #11242

    intradesign
    Participant

    Hi there,
    I have a question concerning cronjobs… The invoiceninja docs say

    “Create a cron to call the ninja:send-invoices and ninja:send-reminders commands once daily.”

    0 8 * * * /usr/local/bin/php /path/to/ninja/artisan ninja:send-invoices
    0 8 * * * /usr/local/bin/php /path/to/ninja/artisan ninja:send-reminders

    What exactly does “/path/to/ninja/artisan” mean?

    I cannot find a folder named artisan within the invoiceninja root or the /ninja subfolder.

    I am running invoiceninja on a centOS 7 server with plesk.

    What can I do?

    Thanks very much,
    Timo

    #11243

    zotya
    Participant

    artisan is a PHP file in the invoiceninja root

    #11245

    Titanfail
    Participant

    zotya’s got it. You’re essentially just running php artisan ninja:send-invoices (or send-reminders). The rest is just telling the system where to find the things you want to run.

    So by default, you’d be looking at something like

    0 8 * * * /usr/local/bin/php /var/www/ninja/artisan ninja:send-invoices
    0 8 * * * /usr/local/bin/php /var/www/ninja/artisan ninja:send-reminders

    and it would run those two tasks at 8am every day.

    #11246

    intradesign
    Participant

    Thanks very much… now it works!

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Posted in: