current
Last change
on this file since fcf0ef3 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 |
---|
7 | current=`pwd` |
---|
8 | # Full path to the env |
---|
9 | env_path=${current}/env |
---|
10 | |
---|
11 | # Activate the virtual env |
---|
12 | echo "Activating virtual environment" |
---|
13 | . ${env_path}/bin/activate |
---|
14 | |
---|
15 | # Send emails |
---|
16 | echo "Running the mail queue processor (this can take a while)" |
---|
17 | echo " (more info in ${current}/var/log/queueprocessor.log)" |
---|
18 | python ow/tasks/run.py development.ini send_emails |
---|
19 | echo "Done" |
---|
Note: See
TracBrowser
for help on using the repository browser.