Comments (7)
Looks like fresh kills the process before starting a new one. With fresh it works.
app_1 | 19:16:27 runner | Killing PID 372
from air.
Could you give me more info to reproduce it? Thanks!
from air.
This is my Dockerfile
:
FROM golang:1.10-alpine3.7
RUN apk update \
&& apk add git \
&& go get github.com/cosmtrek/air
EXPOSE 5000
ENTRYPOINT ["/go/bin/air"]
And that's my docker-compose.yml
:
version: '3'
services:
app:
build: .
volumes:
- .:/go/src/github.com/1STi/core.startupin.me
working_dir: /go/src/github.com/1STi/core.startupin.me
ports:
- "5000:5000"
With fresh i got it working with almost the same Dockerfile
:
FROM golang:1.10-alpine3.7
RUN apk update \
&& apk add git \
&& go get github.com/pilu/fresh
EXPOSE 5000
ENTRYPOINT ["/go/bin/fresh"]
from air.
@lnlwd Thanks, I'll take time to look at it :)
from air.
@lnlwd I've fixed it, could you try it? Thanks.
from air.
It works, thanks!!
from air.
@cosmtrek hey, any reason to check for GOOS=linux only?
I believe I have the same issue reported here as my my app is not being killed on each rebuild. The StackOverflow answer mention that this works on macOS as well, which is my OS. I can open a new Issue if you prefer.
from air.
Related Issues (20)
- Add Homebrew formula HOT 1
- Air doesn't seem to be working when there's whitespace in the path.
- Disable tmp directory HOT 3
- panic: unaligned 64-bit atomic operation in windows HOT 5
- panic when shutting down with SIGINT signal if proxy is enabled HOT 8
- bug: live reload do not work for tmpl files HOT 7
- Using the `air` cli on Windows breaks when providing nested paths to `build.bin`
- Proxy doesn't forward websocket connections/messages HOT 5
- Browser reload script not injected on proxy port HOT 11
- Inconsistent Install Recommendations in English and Chinese READMEs HOT 1
- Moving 'air' to Organization HOT 7
- Changing project link HOT 1
- What's the point of `root`? HOT 1
- Cannot `go install github.com/air-verse/air@latest` HOT 14
- How to Disable "Process Exit with Code 0" Message?
- Fix to a problem when using podman-compose to run Air
- Issue when compiling static files
- add option to ignore the default .air.toml, for usage with "templ generate --notify-proxy"
- Process is orphaned rather than shut down when air exits HOT 9
- Returning HTML breaks proxy HOT 4
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.