source: OpenWorkouts-current/bin/send_emails @ 8ee2af5

current
Last change on this file since 8ee2af5 was 3e6467c, checked in by Borja Lopez <borja@…>, 5 years ago

Added a shell script helper that can be used to run the mail queue processor task

  • Property mode set to 100755
File size: 460 bytes
Line 
1#!/bin/sh
2#
3# Script to run the task that sends emails
4#
5
6# Full path to where we run the script from
7current=`pwd`
8# Full path to the env
9env_path=${current}/env
10
11# Activate the virtual env
12echo "Activating virtual environment"
13. ${env_path}/bin/activate
14
15# Send emails
16echo "Running the mail queue processor (this can take a while)"
17echo "  (more info in ${current}/var/log/queueprocessor.log)"
18python ow/tasks/run.py development.ini send_emails
19echo "Done"
Note: See TracBrowser for help on using the repository browser.