diff --git a/cronjobs/cronjob_production_daily.sh b/cronjobs/cronjob_production_daily.sh index ff54e7abc8593473006f5e2fdb134600f11c0f63..6416252854d09611438ecebcde3385740b5bfe9b 100755 --- a/cronjobs/cronjob_production_daily.sh +++ b/cronjobs/cronjob_production_daily.sh @@ -2,7 +2,7 @@ # Daily cronjobs for production area -cd /home/scipost/webapps/scipost/scipost_v1 -source venv/bin/activate +cd /home/scipost/webapps/scipost_py38/SciPost +source ../venv3.8/bin/activate -python3 manage.py organization_update_cf_nr_associated_publications +python manage.py organization_update_cf_nr_associated_publications diff --git a/cronjobs/cronjob_production_eachhour.sh b/cronjobs/cronjob_production_eachhour.sh index 1cf3f279b71582701a23faba8b94c2d1694e502d..1d819d6f9b75db1e306758d1d7d09c9437bd48ea 100755 --- a/cronjobs/cronjob_production_eachhour.sh +++ b/cronjobs/cronjob_production_eachhour.sh @@ -2,12 +2,12 @@ # Per minute cronjobs for production area -cd /home/scipost/webapps/scipost/scipost_v1 -source venv/bin/activate +cd /home/scipost/webapps/scipost_py38/SciPost +source ../venv3.8/bin/activate # Do tasks -python3 manage.py check_celery -python3 manage.py update_coi_via_arxiv +python manage.py check_celery +python manage.py update_coi_via_arxiv # Do a update_index of the last hour -python3 manage.py update_index -r -v 0 -a 1 +python manage.py update_index -r -v 0 -a 1 diff --git a/cronjobs/cronjob_production_eachminute.sh b/cronjobs/cronjob_production_eachminute.sh index a7db7bdec723b442396b161efe1fa25e40c4b06d..c4f340d0a452319815b4dbad2e193052b8a0b6fb 100755 --- a/cronjobs/cronjob_production_eachminute.sh +++ b/cronjobs/cronjob_production_eachminute.sh @@ -2,8 +2,8 @@ # Per minute cronjobs for production area -cd /home/scipost/webapps/scipost/scipost_v1 -source venv/bin/activate +cd /home/scipost/webapps/scipost_py38/SciPost +source ../venv3.8/bin/activate # Mails waiting in the database -python3 manage.py send_mails +python manage.py send_mails diff --git a/cronjobs/cronjob_production_sundays.sh b/cronjobs/cronjob_production_sundays.sh index 80d4b4e82848b5da03180b78172c3845cf8a2d50..4e42fd0bb33543b2bc36d4ae886702a66eab4282 100755 --- a/cronjobs/cronjob_production_sundays.sh +++ b/cronjobs/cronjob_production_sundays.sh @@ -3,10 +3,10 @@ # Weekly cronjobs for production area # Weekend jobs -cd /home/scipost/webapps/scipost/scipost_v1 -source venv/bin/activate +cd /home/scipost/webapps/scipost_py38/SciPost +source ../venv3.8/bin/activate -python3 manage.py update_citedby +python manage.py update_citedby -# Do a full update_index when maybe something has slipped through during the week somehow..? -python3 manage.py update_index -r -v 0 +# Do a full update_index when maybe something has slipped through during the week +python manage.py update_index -r -v 0 diff --git a/cronjobs/cronjob_production_weekdays.sh b/cronjobs/cronjob_production_weekdays.sh index 791e66344f5da1d95cfd14890d51657ff9bdc4ff..9636feee16038ce1d377cd7e8b6b549b54c9c105 100755 --- a/cronjobs/cronjob_production_weekdays.sh +++ b/cronjobs/cronjob_production_weekdays.sh @@ -2,7 +2,7 @@ # Daily cronjobs for production area -cd /home/scipost/webapps/scipost/scipost_v1 -source venv/bin/activate +cd /home/scipost/webapps/scipost_py38/SciPost +source ../venv3.8/bin/activate -python3 manage.py send_refereeing_reminders +python manage.py send_refereeing_reminders diff --git a/cronjobs/cronjob_production_weekly.sh b/cronjobs/cronjob_production_weekly.sh index 861ffa3c13bd51158ae0e873d90b16dd1ed565ee..b539f6898c5ceee8774fa86c5a41e15a33995036 100755 --- a/cronjobs/cronjob_production_weekly.sh +++ b/cronjobs/cronjob_production_weekly.sh @@ -2,7 +2,7 @@ # Weekly cronjobs for production area -cd /home/scipost/webapps/scipost/scipost_v1 -source venv/bin/activate +cd /home/scipost/webapps/scipost_py38/SciPost +source ../venv3.8/bin/activate -python3 manage.py email_fellows_tasklist +python manage.py email_fellows_tasklist diff --git a/start_celery.sh b/start_celery.sh index a8caa9ad926a8b12c7d6e7206261f380397b67de..380d2c072c279b7033b5272f0582a5e8b3f7c0b7 100755 --- a/start_celery.sh +++ b/start_celery.sh @@ -1,7 +1,7 @@ #!/bin/bash pkill -f bin/celery -cd /home/scipost/webapps/scipost/scipost_v1 && source venv/bin/activate +cd /home/scipost/webapps/scipost_py38/SciPost && source ../venv3.8/bin/activate mkdir -p ./local_files/logs touch ./local_files/logs/celery_worker.log