currentfeature/docs
Last change
on this file since 3ea428a was
2142a49,
checked in by Borja Lopez <borja@…>, 5 years ago
|
Use ZEO in development mode too.
(we will need it once we start running separated process to run tasks,
like sending queued emails)
Adapted bin/start so it handles starting/stopping ZEO instances.
Added some messages to be shown to the user when running the start script,
helping understanding what the script is doing.
Run pserve in the background, instead of leaving it there on the shell.
Added a bin/stop script that stops pserve and ZEO.
|
-
Property mode set to
100755
|
File size:
386 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | # |
---|
3 | # Script to stop OpenWorkouts |
---|
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 | . ${env_path}/bin/activate |
---|
13 | |
---|
14 | # stop pserve |
---|
15 | echo "Stopping OpenWorkouts" |
---|
16 | kill -15 `cat var/run/pserve.pid` |
---|
17 | |
---|
18 | # Stop ZEO |
---|
19 | echo "Stopping database" |
---|
20 | ./bin/zeo_stop >> var/log/zeo_stop.log 2>> var/log/zeo_stop.err & |
---|
Note: See
TracBrowser
for help on using the repository browser.