Mercurial Hosting > luan
comparison host/update.sh @ 2102:3112b06ab447 ssltesting
add host/update.luan
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Tue, 16 Dec 2025 16:53:43 -0700 |
| parents | 41b8b2cbbdf8 |
| children |
comparison
equal
deleted
inserted
replaced
| 2101:ad0a9ef64827 | 2102:3112b06ab447 |
|---|---|
| 29 luan startup/nginx/nginx.conf.luan $(pwd) $(whoami) $(id -gn) >local/nginx.conf | 29 luan startup/nginx/nginx.conf.luan $(pwd) $(whoami) $(id -gn) >local/nginx.conf |
| 30 luan startup/nginx/nginx.default.conf.luan $(pwd) >local/nginx.default.conf | 30 luan startup/nginx/nginx.default.conf.luan $(pwd) >local/nginx.default.conf |
| 31 | 31 |
| 32 # this is done because the nginx conf uses absolute paths | 32 # this is done because the nginx conf uses absolute paths |
| 33 # and this breaks sites when the luan/host directory is moved | 33 # and this breaks sites when the luan/host directory is moved |
| 34 for conf in sites/*/nginx.ssl.conf; do | 34 luan classpath:luan/host/update.luan |
| 35 domain=$(basename $(dirname "$conf")) | |
| 36 luan startup/nginx/nginx.ssl.conf.luan $SCRIPT_DIR $domain >$conf | |
| 37 done | |
| 38 | 35 |
| 39 echo Starting... | 36 echo Starting... |
| 40 ./start.sh | 37 ./start.sh |
