-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
62 lines (40 loc) · 1.48 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.PHONY: help
PWD="$(pwd)"
help: ## This help.
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
.DEFAULT_GOAL := help
exec: ## pop a shell in this thing
docker-compose exec web /bin/bash
exec_redis: ## pop a shell in redis container
docker-compose exec redis /bin/bash
bundle: ## run bundle install in container
docker-compose exec web bundle install
run: ## run bash in a fresh container without startup scripts
docker-compose run web /bin/bash
down: ## turn this thing off
docker-compose down
up: ## run this thing
docker-compose up redis db seleniarm web -d
up_milsch: ## run this thing
PARTNER=milsch docker-compose up redis db seleniarm web -d
up_honors: ## run this thing
PARTNER=honors docker-compose up redis db seleniarm web -d
up_sset: ## run this thing
PARTNER=sset docker-compose up redis db seleniarm web -d
rebuild: build up ## run build and then up
dev: ## build and run locally
docker-compose up redis db seleniarm web --build
build: ## run development environment
docker-compose build
yarn: ## Run Yarn
docker run -v $$PWD:/code -w=/code node:10 'yarn'
attach: ## Attach to the web container
docker attach etda_workflow_web_1
logs: ## watch logs
docker-compose logs -f
rspec: ## test
docker-compose exec -e RAILS_ENV=test web rspec
restart: ## restart rails server
docker-compose exec web bundle exec rails restart
console: ## boot-up rails console
docker-compose exec web bundle exec rails c