Fix env variables in cron
All checks were successful
Build Container / build (push) Successful in 5m15s
All checks were successful
Build Container / build (push) Successful in 5m15s
This commit is contained in:
@@ -90,9 +90,6 @@ def main():
|
||||
topic_to_subscription = {
|
||||
subscription.topic: subscription.id for subscription in subscriptions
|
||||
}
|
||||
topic_to_subscription = {
|
||||
subscription.topic: subscription.id for subscription in subscriptions
|
||||
}
|
||||
|
||||
db.close()
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/bin/bash
|
||||
printenv | while read line; do echo "export $line"; done > /etc/container_environment
|
||||
|
||||
source /app/backend/venv/bin/activate
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
*/1 * * * * . /app/backend/venv/bin/activate && python3 /app/backend/get_notifications.py >> /var/log/cron.log 2>&1
|
||||
*/5 * * * * cd /app/backend && . /app/backend/venv/bin/activate && python3 /app/backend/run_scripts.py >> /var/log/cron.log 2>&1
|
||||
*/1 * * * * . /etc/container_environment && cd /app/backend && . /app/backend/venv/bin/activate && python3 /app/backend/get_notifications.py >> /var/log/cron.log 2>&1
|
||||
*/5 * * * * . /etc/container_environment && cd /app/backend && . /app/backend/venv/bin/activate && python3 /app/backend/run_scripts.py >> /var/log/cron.log 2>&1
|
||||
|
||||
Reference in New Issue
Block a user