Parent Directory | Revision Log
make CouchAPI configurable with enviroment variable FREY_COUCH
1 | #!/bin/sh -x |
2 | |
3 | # This is my homage to Erlang - self restarting perl :-) |
4 | # |
5 | # it enabled to use die and confess when needed without |
6 | # having to worry about development flow |
7 | |
8 | server=./bin/server-mojo.pl |
9 | |
10 | pid=`cat var/dev.pid` |
11 | echo "## $pid" |
12 | if [ ! -z "$pid" ] ; then |
13 | echo "# kill $pid" |
14 | kill $pid |
15 | killall server-mojo.pl |
16 | fi |
17 | |
18 | echo $$ > var/dev.pid |
19 | |
20 | export FREY_SWITCH_SCREEN=1 |
21 | export FREY_DEV=1 |
22 | export FREY_COUCH=1 |
23 | |
24 | while true ; do |
25 | |
26 | FREY_NO_LOG=1 perl -c $server || exit |
27 | FREY_RESTART=1 $server || exit |
28 | FREY_SWITCH_SCREEN=0 |
29 | |
30 | done |
31 |
Name | Value |
---|---|
svn:executable | * |
ViewVC Help | |
Powered by ViewVC 1.1.26 |