Mercurial Hosting > luan
annotate host/update2.sh @ 2145:2b498e7f6d9e nginx_decoupled tip
test; ignore
| author | Violet7 |
|---|---|
| date | Mon, 19 Jan 2026 22:25:37 -0800 |
| parents | 3ca8f933209d |
| children |
| rev | line source |
|---|---|
| 1628 | 1 #!/bin/bash |
| 2 set -e | |
| 3 | |
| 4 ../scripts/build-luan.sh | |
| 5 | |
| 6 mkdir -p local | |
| 7 mkdir -p logs | |
| 8 rm -f logs/* | |
| 9 hg identify >logs/changeset.txt | |
| 10 | |
| 2037 | 11 if [ ! -f local/tiny_account.key ]; then |
| 2096 | 12 echo "Register letsencrypt (tiny-acme)" |
| 13 openssl genrsa 4096 >local/tiny_account.key | |
|
2015
61b0cc7db09c
Manually specify letsencrypt server due to acme default server change (to zerossl)
Violet7
parents:
1632
diff
changeset
|
14 fi |
| 1630 | 15 |
|
2136
3ca8f933209d
Initial; use ~/.nginx-luan/ as nginx master conf dir instead of trying to detect the system default.
Violet7
parents:
2134
diff
changeset
|
16 ./gen_nginx.sh |
| 1628 | 17 |
| 2096 | 18 # this is done because the nginx conf uses absolute paths |
| 19 # and this breaks sites when the luan/host directory is moved | |
|
2102
3112b06ab447
add host/update.luan
Franklin Schmidt <fschmidt@gmail.com>
parents:
2099
diff
changeset
|
20 luan classpath:luan/host/update.luan |
| 2096 | 21 |
|
2136
3ca8f933209d
Initial; use ~/.nginx-luan/ as nginx master conf dir instead of trying to detect the system default.
Violet7
parents:
2134
diff
changeset
|
22 echo "(re)Starting..." |
|
3ca8f933209d
Initial; use ~/.nginx-luan/ as nginx master conf dir instead of trying to detect the system default.
Violet7
parents:
2134
diff
changeset
|
23 ./restart.sh |
