Open bartonhammond opened 5 days ago
Did brew install tmux
& brew install overmind
Ran make watch
:
GoShip$ make watch
overmind start
make: overmind: No such file or directory
make: *** [watch] Error 1
GoShip$ make down
docker-compose down
[+] Running 3/2
✔ Container goship_mailpit Removed 0.4s
✔ Container goship_cache Removed 0.2s
✔ Network goship_default Removed 0.0s
GoShip$ make up
docker-compose up -d --remove-orphans
[+] Building 0.0s (0/0) docker:desktop-linux
[+] Running 3/3
✔ Network goship_default Created 0.0s
✔ Container goship_mailpit Started 0.0s
✔ Container goship_cache Started 0.0s
sleep 3
air
watch-go | make[1]: air: No such file or directory
watch-go | make[1]: *** [watch-go] Error 1
watch-go | Exited with code 2
watch-js | Interrupting...
watch-css | Interrupting...
watch-go-worker | Interrupting...
watch-js | make[1]: *** [watch-js] Interrupt: 2
watch-css | Exited with code 0
watch-go-worker | Exited with code 0
watch-js | Exited with code 0
make: *** [watch] Error 2
Ran go install github.com/air-verse/air@latest
Started new shell (MacOS)
GoShip$
GoShip$
air
watch-go | make[1]: air: No such file or directory
watch-go | make[1]: *** [watch-go] Error 1
watch-go | Exited with code 2
watch-js | Interrupting...
watch-css | Interrupting...
watch-go-worker | Interrupting...
watch-js | make[1]: *** [watch-js] Interrupt: 2
watch-go-worker | Exited with code 0
watch-js | Exited with code 0
watch-css | Exited with code 0
make: *** [watch] Error 2
GoShip$
This is first time ever using golang
so I'm lost.
so added the following to .zshrc
alias air='$(go env GOPATH)/bin/air
Then reopen terminal and run make watch
:
air
watch-go | make[1]: air: No such file or directory
watch-go | make[1]: *** [watch-go] Error 1
watch-go | Exited with code 2
watch-css | npx tailwindcss -i ./styles/styles.css -o ./static/styles_bundle.css --watch
watch-js | Interrupting...
watch-css | Interrupting...
watch-go-worker | Interrupting...
watch-css | make[1]: *** [watch-css] Interrupt: 2
watch-js | make[1]: *** [watch-js] Interrupt: 2
watch-go-worker | Exited with code 0
watch-css | Exited with code 0
watch-js | Exited with code 0
make: *** [watch] Error 2
So I try just entering air
.
GoShip$ air
__ _ ___
/ /\ | | | |_)
/_/--\ |_| |_| \_ v1.61.1, built with Go go1.23.2
mkdir /Users/bartonhammond/projects/go/GoShip/tmp
watching .
watching cmd
watching cmd/seed
watching cmd/web
watching cmd/worker
watching config
watching config/firewalls
watching data
watching dbs
watching deploy
watching deploy/kamal
!exclude e2e_tests
watching ent
watching ent/emailsubscription
watching ent/emailsubscriptiontype
watching ent/emojis
watching ent/enttest
watching ent/fcmsubscriptions
watching ent/filestorage
watching ent/hook
watching ent/image
watching ent/imagesize
watching ent/invitation
watching ent/lastseenonline
watching ent/migrate
watching ent/migrate/migrations
watching ent/monthlysubscription
watching ent/notification
watching ent/notificationpermission
watching ent/notificationtime
watching ent/passwordtoken
watching ent/phoneverificationcode
watching ent/predicate
watching ent/profile
watching ent/pwapushsubscription
watching ent/runtime
watching ent/schema
watching ent/sentemail
watching ent/user
!exclude javascript
!exclude node_modules
watching pgvector-image
watching pkg
watching pkg/context
watching pkg/controller
watching pkg/domain
watching pkg/funcmap
watching pkg/htmx
watching pkg/middleware
watching pkg/repos
watching pkg/repos/emailsmanager
watching pkg/repos/mailer
watching pkg/repos/msg
watching pkg/repos/notifierrepo
watching pkg/repos/profilerepo
watching pkg/repos/pubsub
watching pkg/repos/storage
watching pkg/repos/subscriptions
watching pkg/routing
watching pkg/routing/routenames
watching pkg/routing/routes
watching pkg/services
watching pkg/tasks
watching pkg/tests
watching pkg/types
!exclude pwabuilder-ios-wrapper
!exclude scripts
watching seeder
watching static
watching styles
watching templates
watching templates/components
watching templates/emails
watching templates/helpers
watching templates/layouts
watching templates/pages
!exclude testdata
!exclude tmp
building...
/bin/sh: templ: command not found
failed to build, error: exit status 127
running...
/bin/sh: /Users/bartonhammond/projects/go/GoShip/tmp/main: No such file or directory
Process Exit with Code: 127
So installed templ
with go install github.com/a-h/templ/cmd/templ@latest
and added alias templ='$(go env GOPATH)/bin/templ'
to .zshrc
and restarted terminal
When I do make watch
the final display is this:
air
watch-go | make[1]: air: No such file or directory
watch-go | make[1]: *** [watch-go] Error 1
watch-go | Exited with code 2
watch-js | Interrupting...
watch-css | Interrupting...
watch-go-worker | Interrupting...
watch-js | make[1]: *** [watch-js] Interrupt: 2
watch-css | Exited with code 0
watch-js | Exited with code 0
watch-go-worker | Exited with code 0
make: *** [watch] Error 2
GoShip$
Thanks for making this available!
cloned and ran
make init
so I did
npm install
and ranmake init
again with the following: