Mercurial > code > home > repos > light9
annotate bin/homepage @ 1225:70f42f9d6e04
simplify homepageConfig. get homepage port from rdf. get rdfdb port from rdf
Ignore-this: 385f637df1b0d670a182d492f151a163
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Mon, 08 Jun 2015 08:01:43 +0000 |
parents | 0d295af23c4b |
children | 0b2edd4de97a |
rev | line source |
---|---|
1212 | 1 #!/bin/zsh |
2 | |
3 CONF=/tmp/light9_nginx.conf | |
4 ROOT=`dirname $0`/.. | |
5 ROOT=${ROOT:a} | |
6 | |
1215 | 7 bin/homepageConfig > /tmp/light9_nginx_routes.conf |
8 | |
1212 | 9 cat > $CONF <<EOF |
10 worker_processes 1; | |
11 | |
12 daemon off; | |
13 error_log /tmp/light9_homepage.err; | |
14 pid /dev/null; | |
15 | |
16 events { | |
17 worker_connections 1024; | |
18 } | |
19 | |
20 http { | |
21 include $ROOT/light9/web/mime.types; | |
22 | |
23 server { | |
1215 | 24 access_log off; |
1212 | 25 |
1215 | 26 include "/tmp/light9_nginx_routes.conf"; |
1212 | 27 |
28 location / { | |
29 root $ROOT/light9/web; | |
30 } | |
31 | |
32 } | |
33 } | |
34 EOF | |
1225
70f42f9d6e04
simplify homepageConfig. get homepage port from rdf. get rdfdb port from rdf
Drew Perttula <drewp@bigasterisk.com>
parents:
1215
diff
changeset
|
35 head -1 /tmp/light9_nginx_routes.conf |
1212 | 36 exec nginx -c $CONF |