From 30c984fd90f4916bf85b4114b4cb738ae2cef3d4 Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Sun, 22 Dec 2024 21:05:51 -0500 Subject: [PATCH] Feature/deploy linux (#1212) * 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 --- .taskfiles/Hway.yml | 4 ++++ app/gateway/handlers/register.go | 2 +- app/gateway/views/base_hero.templ | 2 +- app/gateway/views/base_hero_templ.go | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.taskfiles/Hway.yml b/.taskfiles/Hway.yml index e4f5e92c1..18b4b984b 100644 --- a/.taskfiles/Hway.yml +++ b/.taskfiles/Hway.yml @@ -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: diff --git a/app/gateway/handlers/register.go b/app/gateway/handlers/register.go index f5b9450ec..4338fdfa8 100644 --- a/app/gateway/handlers/register.go +++ b/app/gateway/handlers/register.go @@ -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) diff --git a/app/gateway/views/base_hero.templ b/app/gateway/views/base_hero.templ index cf124e0cc..596dc9e01 100644 --- a/app/gateway/views/base_hero.templ +++ b/app/gateway/views/base_hero.templ @@ -13,7 +13,7 @@ templ HeroTitle(title string, subtitle string) { templ HeroStart() {
- + Create Vault diff --git a/app/gateway/views/base_hero_templ.go b/app/gateway/views/base_hero_templ.go index a59208dba..94db093d3 100644 --- a/app/gateway/views/base_hero_templ.go +++ b/app/gateway/views/base_hero_templ.go @@ -84,7 +84,7 @@ func HeroStart() templ.Component { templ_7745c5c3_Var4 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
Create Vault
") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
Create Vault
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }