Comments (2)
You probably figured it out, but you most likely just have to configure the air.toml (in root dir) to run go build -o temp/main cmd/api/main.go
instead of what's the default.
from air.
And if you have multiple go files in the directory, point it to the entire directory, not just the main.go file, i.e. go build -o ./tmp/main ./cmd/api
. @cosmtrek I think this should be included in the FAQ section, under "What to do if my go files are not in the root directory?". I have spent a good amount of time trying to figure it out because I'm a total newbie. I bet there will be more people looking for that in the future. Thanks.
from air.
Related Issues (20)
- 可以监听 docker-compose 挂载的配置文件么?
- 变动构建失败 HOT 1
- 支持多个可执行文件 HOT 1
- Make pre_cmd background forkable HOT 3
- Air not being installed in zsh path on macOS HOT 5
- building memos not use docker in windows10
- i want to install the imported packages with air reloading
- Air always assumes that there is binary build target HOT 2
- zsh: permission denied:
- Hide logo or show custom text
- post_cmd on Windows with paths with spaces doesn't seem to work HOT 1
- pre_cmd fails HOT 3
- Hot Reload Not Working on Rancher Desktop
- Hot Reload not working for changes on main.go HOT 2
- Add Homebrew formula
- Air doesn't seem to be working when there's whitespace in the path.
- Disable tmp directory
- panic: unaligned 64-bit atomic operation in windows HOT 1
- panic when shutting down with SIGINT signal if proxy is enabled HOT 7
- bug: live reload do not work for tmpl files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from air.