Skip to content

Commit 464e3b7

Browse files
committed
allow to adjust the heroku app name
1 parent 538771b commit 464e3b7

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

movies/Makefile

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1+
APP ?= hydra-movies
2+
13
image: ## build image and push to heroku registry
2-
heroku container:push web --app hydra-movies
4+
heroku container:push web --app $(APP)
35

46
release: ## release container to heroku
5-
heroku container:release web --app hydra-movies
7+
heroku container:release web --app $(APP)
68

79
deploy: image release
810

911
logs: ## show heroku logs
10-
heroku logs --tail --app hydra-movies
12+
heroku logs --tail --app $(APP)
1113

1214
.PHONY: image release deploy logs

movies/docs/deployment.md

+16-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,19 @@ Afterwards run the follwing command within the `movies` directory:
1111

1212
```bash
1313
make deploy
14-
```
14+
```
15+
16+
### Deploy to your own account
17+
18+
You can deploy to your own heroku account. First log in:
19+
20+
```bash
21+
heroku login
22+
heroku container:login
23+
```
24+
25+
Then run `make` with specifying the `APP` name:
26+
27+
```bash
28+
make APP=my-hydra-movies deploy
29+
```

0 commit comments

Comments
 (0)