Skip to content

Commit

Permalink
Merge pull request #36 from studiokaiji:feature-change-default-deploy…
Browse files Browse the repository at this point in the history
…-type

Feature-change-default-deploy-type
  • Loading branch information
studiokaiji authored Sep 27, 2023
2 parents c2fc8c0 + 887e005 commit 35e5f93
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions hostr/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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!")
Expand Down
5 changes: 3 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down

0 comments on commit 35e5f93

Please sign in to comment.