Mercurial > code > home > repos > light9
annotate bin/homepage @ 1415:edc17fdcaaf1
big rewrite of adjuster update code. origin & p3 adjusters kind of work. adj layout slightly works
Ignore-this: d8b55365cc1ebf43e76aec5fc9f5ec9e
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Fri, 10 Jun 2016 11:18:02 +0000 |
parents | 0b2edd4de97a |
children | 15f296550447 |
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 |
1411 | 36 exec /usr/sbin/nginx -c $CONF |