i have installed sharetribe and it works like a charm, thank you!
But i have problems with the cronjobs and scheduled tasks. Doesnt matter how i add them to crontab, they dont work. Can someone give me the right config or example? Ubuntu 18.04
Thanks!!!
This script dont work:
#!/bin/bash
cd /home/administrator/sharetribe
RAILS_ENV=production bundle exec rake ts:start
screen -dmS worker bash -c 'RAILS_ENV=production bundle exec rake jobs:work'
screen -dmS server bash -c 'bundle exec rails server -e production'
I place the cronjobs file inside the root of the sharetribe repo (/home/user_name/sharetribe/)
and my crontab file has this line to execute the cronjobs file every day at 12:00 am
0 0 * * * /home/user_name/sharetribe/cron_jobs.sh
You’re starting the Sphinx server, Delayed Jobs and the App server all from a cronjob file, but those things are supposed to start only once,
The cronjob file should contain tasks that are supposed to execute regularly in a specified interval.
I don’t have a single script to start/stop Sphinx server, Delayed Jobs and the App server,
I start them manually