2023-12-21 15:01:06 +01:00
|
|
|
|
2023-12-29 11:05:20 +01:00
|
|
|
# Define source and destination directories
|
|
|
|
MD_SRC_DIR := public
|
|
|
|
MD_DST_DIR := ../ewintr.nl/content/movies
|
|
|
|
|
2023-12-25 10:54:21 +01:00
|
|
|
run-api:
|
2023-12-22 18:12:30 +01:00
|
|
|
go run ./cmd/api-service/service.go -apikey localOnly
|
2023-12-21 15:01:06 +01:00
|
|
|
|
2023-12-27 08:25:09 +01:00
|
|
|
run-tui-local:
|
2023-12-25 13:29:43 +01:00
|
|
|
EMDB_BASE_URL=http://localhost:8085/ EMDB_API_KEY=hoi go run ./cmd/terminal-client/main.go
|
2023-12-25 10:54:21 +01:00
|
|
|
|
2023-12-27 08:25:09 +01:00
|
|
|
run-tui:
|
|
|
|
go run ./cmd/terminal-client/main.go
|
|
|
|
|
2023-12-29 09:47:14 +01:00
|
|
|
run-md-export:
|
|
|
|
go run ./cmd/markdown-export/main.go
|
2023-12-29 11:05:20 +01:00
|
|
|
for dir in $(MD_SRC_DIR)/*; do \
|
|
|
|
if [ -n "$$(ls -A $$dir)" ]; then \
|
|
|
|
cp -r $$dir/* $(MD_DST_DIR)/`basename $$dir`; \
|
|
|
|
fi \
|
|
|
|
done
|
2023-12-29 09:47:14 +01:00
|
|
|
|
2023-12-29 19:10:31 +01:00
|
|
|
run-worker:
|
|
|
|
go run ./cmd/worker/main.go
|
|
|
|
|
2023-12-27 08:25:09 +01:00
|
|
|
|
2023-12-25 10:54:21 +01:00
|
|
|
build-api:
|
2023-12-25 11:13:11 +01:00
|
|
|
go build -o emdb-api ./cmd/api-service/service.go
|
|
|
|
|
|
|
|
deploy-api:
|
2023-12-25 11:15:22 +01:00
|
|
|
ssh ewintr.nl /home/erik/bin/deploy-emdb-api.sh
|