1
0
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:
Maksym Pavlenko
2019-03-06 22:19:59 -08:00
parent 621c0e82cf
commit 072dccff4e
8 changed files with 12 additions and 12 deletions

1
cmd/api/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
api

View File

@@ -1,4 +1,4 @@
FROM alpine
RUN apk --update --no-cache add ca-certificates
COPY ./server /server
ENTRYPOINT ["/server"]
COPY ./api /api
ENTRYPOINT ["/api"]

View File

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

View File

1
cmd/app/.gitignore vendored
View File

@@ -1 +0,0 @@
server

View File

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