testing deployment to web

adding automated deploy attempt 1

+7 -2
+4
.tangled/workflows/pipeline.yaml
··· 13 13 dependencies: 14 14 nixpkgs: 15 15 - go 16 + - railway 16 17 17 18 environment: 18 19 GOOS: "linux" ··· 22 23 steps: 23 24 - name: "Build web server" 24 25 command: "go build" 26 + 27 + - name: "Deply to railway" 28 + command: "RAILWAY_TOKEN=TOKEN railway up" 25 29 26 30 27 31
+2 -1
README.md
··· 31 31 32 32 - [ ] automatic deployment 33 33 - use railway token 34 + - add railway cli to spindle 34 35 - set ci with spindle 35 36 - how to deploy golang yaml properly 36 37 - dev and main branch 37 38 38 39 ref: https://blog.railway.com/p/github-actions 39 40 40 - - dev & main branches 41 + - env secret for token & db path
+1 -1
main.go
··· 24 24 } 25 25 26 26 func handleRoot(w http.ResponseWriter, r *http.Request) { 27 - rootPage := HelloPage(testEnv) 27 + rootPage := HelloPage(testEnv + ", yup!") 28 28 rootPage.Render(r.Context(), w) 29 29 }