Skip to content

Commit

Permalink
Feature/deploy linux (#1212)
Browse files Browse the repository at this point in the history
* chore(deploy): remove devbox configuration

* feat(taskfiles): add mount and platform specific start commands for IPFS

* feat(gateway): update registration route

---------

Signed-off-by: Prad Nukala <[email protected]>
  • Loading branch information
prnk28 authored Dec 23, 2024
1 parent 4d6a862 commit 30c984f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .taskfiles/Hway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@ tasks:
desc: Build the hway binary
silent: true
cmds:
- templ generate
- sqlc generate -f internal/database/sqlc.yaml
- gum spin --spinner dot --title "Build Hway Single Target ({{.OS}}/{{.ARCH}})..." -- goreleaser build --snapshot --clean --single-target --id hway -o {{.BIN_DIR}}/hway

install:
desc: Install the hway binary
silent: true
cmds:
- templ generate
- sqlc generate -f internal/database/sqlc.yaml
- gum spin --spinner dot --title "Install Hway Single Target ({{.OS}}/{{.ARCH}})..." -- make install-hway

start:
Expand Down
2 changes: 1 addition & 1 deletion app/gateway/handlers/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

func RegisterHandler(g *echo.Group) {
g.GET("/", renderProfileForm)
g.GET("/start", renderProfileForm)
g.POST("/profile", validateProfileForm)
g.GET("/passkey", renderPasskeyForm)
g.POST("/passkey", validatePasskeyForm)
Expand Down
2 changes: 1 addition & 1 deletion app/gateway/views/base_hero.templ
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ templ HeroTitle(title string, subtitle string) {

templ HeroStart() {
<div class="pt-1.5 mb-3 flex flex-col items-center justify-center h-full">
<sl-button size="large" hx-target="#container" hx-get="/register" hx-push-url="/register" type="button">
<sl-button size="large" hx-target="#container" hx-get="/register" hx-push-url="/register/start" type="button">
<sl-icon slot="prefix" library="sonr" name="sonr"></sl-icon>
Create Vault
<sl-icon slot="suffix" library="sonr" name="arrow-right"></sl-icon>
Expand Down
2 changes: 1 addition & 1 deletion app/gateway/views/base_hero_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 30c984f

Please sign in to comment.