mirror of
https://github.com/LucasVbr/game-lib.git
synced 2026-07-09 06:57:59 +00:00
chore: setup monorepo with docker and move legacy code in to apps/web
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
-include .env
|
||||
|
||||
DC=docker compose
|
||||
|
||||
## help: Print commands help
|
||||
.PHONY: help
|
||||
help : Makefile
|
||||
@sed -n 's/^##//p' $<
|
||||
|
||||
## up: Start the application
|
||||
.PHONY: up
|
||||
up:
|
||||
$(DC) up -d --remove-orphans $(service)
|
||||
|
||||
## down: Stop the application
|
||||
.PHONY: down
|
||||
down:
|
||||
$(DC) down $(service)
|
||||
|
||||
## build: Build the application
|
||||
.PHONY: build
|
||||
build:
|
||||
$(DC) build --no-cache $(service)
|
||||
|
||||
## logs: Follow the application logs
|
||||
.PHONY: logs
|
||||
logs:
|
||||
$(DC) logs -f $(service)
|
||||
|
||||
shell:
|
||||
$(DC) exec $(service) sh
|
||||
|
||||
# https://stackoverflow.com/a/6273809/1826109
|
||||
%:
|
||||
@:
|
||||
Reference in New Issue
Block a user