From ac1782b99895c9e3a7538171f72fc0aa504da832 Mon Sep 17 00:00:00 2001 From: studiokaiji Date: Thu, 28 Sep 2023 01:18:22 +0900 Subject: [PATCH 1/2] =?UTF-8?q?replaceable=E3=82=92=E3=83=87=E3=83=95?= =?UTF-8?q?=E3=82=A9=E3=83=AB=E3=83=88=E3=81=A7true=E3=81=AB=E5=A4=89?= =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hostr/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hostr/main.go b/hostr/main.go index d9b13fd..dfc445c 100644 --- a/hostr/main.go +++ b/hostr/main.go @@ -36,13 +36,13 @@ func main() { &cli.BoolFlag{ Name: "replaceable", Aliases: []string{"r"}, - Usage: "๐Ÿงช Experimental: Specify 'true' explicitly when using NIP-33", - Value: false, + Usage: "Specify 'true' explicitly when using NIP-33", + Value: true, }, &cli.StringFlag{ Name: "identifier", Aliases: []string{"d"}, - Usage: "๐Ÿงช Experimental: index.html identifier (valid only if replaceable option is true)", + Usage: "index.html identifier (valid only if replaceable option is true)", }, }, Action: func(ctx *cli.Context) error { @@ -51,7 +51,7 @@ func main() { path := ctx.String("path") replaceable := ctx.Bool("replaceable") dTag := ctx.String("identifier") - + indexEventId, err := deploy.Deploy(path, replaceable, dTag) if err == nil { fmt.Println("๐ŸŒ Deploy Complete!") From 887e005f655b364665cdd381fcc6f7f8d7e2c5a1 Mon Sep 17 00:00:00 2001 From: studiokaiji Date: Thu, 28 Sep 2023 01:23:32 +0900 Subject: [PATCH 2/2] =?UTF-8?q?Readme=E3=81=ABidentifier=E3=81=A8replaceab?= =?UTF-8?q?le=E3=82=AA=E3=83=97=E3=82=B7=E3=83=A7=E3=83=B3=E3=81=AE?= =?UTF-8?q?=E8=AA=AC=E6=98=8E=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index dbf5b46..a5d909a 100644 --- a/readme.md +++ b/readme.md @@ -39,8 +39,9 @@ Or if you want to generate private key: `hostr generate-key` 3. Add relay `hostr add-relay wss://r.hostr.cc` 4. Deploy -`hostr deploy /BUILT/SPA/DIR/PATH` -The event id of index.html will be output after deploy. Please make a copy of it. +`hostr deploy --path /BUILT/SPA/DIR/PATH --identifier=test` + - The `--identifier` option is the identifier (d-tag) for Replaceable Events based on NIP-33. When you update this site, please specify the same identifier. If you want to create a non-replaceable site, you can achieve that by specifying `--replaceable=false`. + - The event id of index.html will be output after deploy. Please make a copy of it. 5. Start test web server `hostr start` 6. Access the `http://localhost:3000/e/{event-id-of-index.html}`