aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/puppeth/wizard_nginx.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-10-19 21:00:55 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-11-21 21:09:33 +0800
commitda3b9f831e6bb8f8a3c589e5cd8426fd9da72eea (patch)
treefb9cca2507788d43e79113a42d9abc3e221e6378 /cmd/puppeth/wizard_nginx.go
parent7b258c96816df56e642df7e314e8052213af70fa (diff)
downloaddexon-da3b9f831e6bb8f8a3c589e5cd8426fd9da72eea.tar
dexon-da3b9f831e6bb8f8a3c589e5cd8426fd9da72eea.tar.gz
dexon-da3b9f831e6bb8f8a3c589e5cd8426fd9da72eea.tar.bz2
dexon-da3b9f831e6bb8f8a3c589e5cd8426fd9da72eea.tar.lz
dexon-da3b9f831e6bb8f8a3c589e5cd8426fd9da72eea.tar.xz
dexon-da3b9f831e6bb8f8a3c589e5cd8426fd9da72eea.tar.zst
dexon-da3b9f831e6bb8f8a3c589e5cd8426fd9da72eea.zip
cmd/puppeth: support deploying services with forced rebuilds
Diffstat (limited to 'cmd/puppeth/wizard_nginx.go')
-rw-r--r--cmd/puppeth/wizard_nginx.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/puppeth/wizard_nginx.go b/cmd/puppeth/wizard_nginx.go
index 86fba29f5..919ab270b 100644
--- a/cmd/puppeth/wizard_nginx.go
+++ b/cmd/puppeth/wizard_nginx.go
@@ -41,7 +41,11 @@ func (w *wizard) ensureVirtualHost(client *sshClient, port int, def string) (str
fmt.Println()
fmt.Println("Allow sharing the port with other services (y/n)? (default = yes)")
if w.readDefaultString("y") == "y" {
- if out, err := deployNginx(client, w.network, port); err != nil {
+ fmt.Println()
+ fmt.Printf("Should the reverse-proxy be rebuilt from scratch (y/n)? (default = no)\n")
+ nocache := w.readDefaultString("n") != "n"
+
+ if out, err := deployNginx(client, w.network, port, nocache); err != nil {
log.Error("Failed to deploy reverse-proxy", "err", err)
if len(out) > 0 {
fmt.Printf("%s\n", out)