mirror of
https://github.com/mxpv/podsync.git
synced 2024-05-11 05:55:04 +00:00
Rename app to api
This commit is contained in:
1
cmd/api/.gitignore
vendored
Normal file
1
cmd/api/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
api
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM alpine
|
||||
RUN apk --update --no-cache add ca-certificates
|
||||
COPY ./server /server
|
||||
ENTRYPOINT ["/server"]
|
||||
COPY ./api /api
|
||||
ENTRYPOINT ["/api"]
|
||||
@@ -1,4 +1,4 @@
|
||||
OUT := server
|
||||
OUT := api
|
||||
SRC := $(wildcard *.go)
|
||||
|
||||
build: $(SRC)
|
||||
@@ -6,8 +6,8 @@ build: $(SRC)
|
||||
|
||||
.PHONY: push
|
||||
push: build
|
||||
docker build -t mxpv/podsync .
|
||||
docker push mxpv/podsync
|
||||
docker build -t mxpv/podsync_api .
|
||||
docker push mxpv/podsync_api
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
1
cmd/app/.gitignore
vendored
1
cmd/app/.gitignore
vendored
@@ -1 +0,0 @@
|
||||
server
|
||||
@@ -3,7 +3,7 @@ upstream worker {
|
||||
}
|
||||
|
||||
upstream backend {
|
||||
server app:5001;
|
||||
server api:5001;
|
||||
}
|
||||
|
||||
proxy_cache_path /tmp/nginx levels=1:2 keys_zone=feeds_cache:25m max_size=1g inactive=30m use_temp_path=off;
|
||||
|
||||
Reference in New Issue
Block a user