Skip to content

Commit d5bfefd

Browse files
committed
πŸ“„ updates: hooks, Makefile and compose
1 parent c7b0470 commit d5bfefd

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

β€Žhooks/post_gen_project.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fi
2828

2929
if [[ "{{cookiecutter.use_rest_http}}" =~ ^[Yy] ]]; then
3030
echo_info "Install rest.http extension for vscode"
31-
touch rest.http
31+
curl -sLO https://raw.githubusercontent.com/coderj001/PhoneGuardian/master/rest.http
3232
fi
3333

3434
#
@@ -55,6 +55,13 @@ JWT_SECRET=$(openssl rand -base64 32)
5555
# Step 5:
5656
#
5757

58+
echo_info "Initializing Go"
59+
go mod tidy
60+
61+
#
62+
# Step 6:
63+
#
64+
5865
echo_info "Initializing Git"
5966
git init
6067
git add .

β€Ž{{cookiecutter.project_name}}/Makefile

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# Variables
44
DOCKER_IMAGE_DEV = {{cookiecutter.project_name}}_dev
55
DOCKER_IMAGE_PROD = {{cookiecutter.project_name}}_prod
6-
DOCKER_COMPOSE_DEV = docker-compose -f compose/dev.yml
7-
DOCKER_COMPOSE_PROD = docker-compose -f compose/prod.yml
6+
DOCKER_COMPOSE_DEV = docker-compose -f dev.yaml
7+
DOCKER_COMPOSE_PROD = docker-compose -f prod.yaml
88

99
.PHONY: help build-dev build-prod run-dev run-prod build-cli run-cli clean
1010

@@ -30,6 +30,12 @@ run-dev:
3030
run-prod:
3131
$(DOCKER_COMPOSE_PROD) up
3232

33+
down-dev:
34+
$(DOCKER_COMPOSE_DEV) down
35+
36+
down-prod:
37+
$(DOCKER_COMPOSE_PROD) down
38+
3339
build-cli:
3440
go build -o {{cookiecutter.project_name}} cmd/server/*.go
3541

0 commit comments

Comments
Β (0)