Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions cmd/template/framework/files/air.toml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,10 @@ tmp_dir = "tmp"
[screen]
clear_on_rebuild = false
keep_scroll = true
{{- if .AdvancedOptions.htmx}}

[proxy]
proxy_port = 3000
app_port = 8080
Comment on lines +50 to +51
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The app port and proxy are hardcoded—can you retrieve them from the .env file instead?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the ports are hardcoded in .env too though, maybe we could make it a variable in the project object and pass it into both?

enabled = true
{{- end}}
1 change: 1 addition & 0 deletions docs/docs/creating-project/air.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ watching internal/server
watching tests
!exclude tmp
building...
Proxy server listening on http://localhost:3000
make[1]: Entering directory '/home/ujstor/code/blueprint-version-test/ws-test4'
Building...
Processing path: /home/ujstor/code/blueprint-version-test/ws-test4
Expand Down