rename the binary to playground
This commit is contained in:
parent
ac5f372793
commit
052d9f051e
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1 @@
|
||||||
/httpd
|
/playground
|
||||||
|
|
|
@ -28,7 +28,7 @@ RUN git clone https://git.sr.ht/~sircmpwn/hare && \
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY ./ ./
|
COPY ./ ./
|
||||||
RUN make -B httpd HAREPATH=/usr/local/src/hare/stdlib HAREFLAGS=-lpthread
|
RUN make -B playground HAREPATH=/usr/local/src/hare/stdlib HAREFLAGS=-lpthread
|
||||||
|
|
||||||
FROM ubuntu:24.04
|
FROM ubuntu:24.04
|
||||||
|
|
||||||
|
@ -41,8 +41,8 @@ RUN apt-get update -qq \
|
||||||
vim
|
vim
|
||||||
|
|
||||||
COPY --from=harebuild /usr/local /usr/local
|
COPY --from=harebuild /usr/local /usr/local
|
||||||
COPY --from=harebuild /src/httpd /usr/local/bin/backend
|
COPY --from=harebuild /src/playground /usr/local/bin/playground
|
||||||
COPY ./frontend/ /app/
|
COPY ./frontend/ /app/
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENTRYPOINT ["/usr/local/bin/backend", "-a", "0.0.0.0:8080"]
|
ENTRYPOINT ["/usr/local/bin/playground", "-a", "0.0.0.0:8080"]
|
||||||
|
|
14
Makefile
14
Makefile
|
@ -15,9 +15,9 @@ classpathify = $(subst $(eval ) ,:,$1)
|
||||||
HAREEXTRAPATH = $(HAREPATH)
|
HAREEXTRAPATH = $(HAREPATH)
|
||||||
HAREEXTRAPATH += $(wildcard vendor/*)
|
HAREEXTRAPATH += $(wildcard vendor/*)
|
||||||
|
|
||||||
all: httpd
|
all: playground
|
||||||
|
|
||||||
httpd: $(wildcard cmd/httpd/*.ha) $(SOURCES)
|
playground: $(wildcard cmd/playground/*.ha) $(SOURCES)
|
||||||
HAREPATH=$(call classpathify,$(HAREEXTRAPATH)) \
|
HAREPATH=$(call classpathify,$(HAREEXTRAPATH)) \
|
||||||
$(HARE) build $(HAREFLAGS) -o $@ cmd/$@/
|
$(HARE) build $(HAREFLAGS) -o $@ cmd/$@/
|
||||||
|
|
||||||
|
@ -26,15 +26,15 @@ check:
|
||||||
$(HARE) test $(HAREFLAGS)
|
$(HARE) test $(HAREFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f httpd
|
rm -f playground
|
||||||
|
|
||||||
install: httpd
|
install: playground
|
||||||
install -Dm755 web $(DESTDIR)$(BINDIR)/httpd
|
install -Dm755 web $(DESTDIR)$(BINDIR)/playground
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f $(DESTDIR)$(BINDIR)/httpd
|
rm -f $(DESTDIR)$(BINDIR)/playground
|
||||||
|
|
||||||
test: httpd
|
test: playground
|
||||||
hurl --test test/api.hurl
|
hurl --test test/api.hurl
|
||||||
|
|
||||||
.PHONY: all check clean install uninstall test
|
.PHONY: all check clean install uninstall test
|
||||||
|
|
|
@ -26,7 +26,7 @@ docker build -t hareplayground
|
||||||
## Run locally
|
## Run locally
|
||||||
|
|
||||||
```
|
```
|
||||||
./httpd -b ./frontend
|
./playground -b ./frontend
|
||||||
```
|
```
|
||||||
|
|
||||||
## Run Docker container
|
## Run Docker container
|
||||||
|
|
Loading…
Reference in a new issue