1
Fork 0

rename the binary to playground

This commit is contained in:
Jan-Erik Rediger 2024-06-03 21:05:26 +02:00
parent ac5f372793
commit 052d9f051e
7 changed files with 12 additions and 12 deletions

2
.gitignore vendored
View file

@ -1 +1 @@
/httpd /playground

View file

@ -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"]

View file

@ -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

View file

@ -26,7 +26,7 @@ docker build -t hareplayground
## Run locally ## Run locally
``` ```
./httpd -b ./frontend ./playground -b ./frontend
``` ```
## Run Docker container ## Run Docker container