-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (17 loc) · 819 Bytes
/
Makefile
File metadata and controls
25 lines (17 loc) · 819 Bytes
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
PONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
up: ## Start api
docker-compose up
test: ## Run tests
docker-compose run --rm api bundle exec rspec
build: ## Build api image
docker-compose build api
swag-generate: ## Generate swagger spec
docker-compose exec api bundle exec rake rswag:specs:swaggerize
migrate: ## Run migrations
docker-compose exec api rails db:migrate
create-empty-migration: ## Create an empty migration
docker-compose exec api rails g migration
create-super-user: ## Create a test super user with creds testuser@now-u.com, strongpassword
docker-compose exec api bash -c echo "Admin.create!(email: "testuser@now-u.com", password: "strongpassword", admin_role: 64)" | rails c