-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
78 lines (57 loc) · 1.16 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
include make-compose.mk
include make-compose-app.mk
setup:
make prepare-env
bin/setup
# bin/rails db:seed
make db-reset
yarn install
bin/rails assets:precompile
prepare-env:
cp -n .env.example .env || true
fixtures-load:
bin/rails db:fixtures:load
db-reset:
bin/rails db:drop
bin/rails db:create
bin/rails db:schema:load
bin/rails db:migrate
bin/rails db:fixtures:load
start:
rm -rf tmp/pids/server.pid
bin/rails s -p 3000 -b "0.0.0.0"
console:
bin/rails console
push:
./git.sh $(commit) $(opt)
deploy:
git push heroku main
heroku-console:
heroku run rails console
heroku-logs:
heroku logs --tail
lint:
bundle exec rubocop
bundle exec slim-lint app/views/
lint-fix:
bundle exec rubocop -A
test:
bin/rails db:environment:set RAILS_ENV=test
bin/rails test
setup-ci:
make prepare-env
bin/setup
make db-reset
yarn install
RAILS_ENV=test NODE_OPTIONS='--openssl-legacy-provider' bin/rails assets:precompile
ci-check:
make setup-ci
make test
start-production:
bin/rails db:migrate
bin/rails server -e production
tag:
git tag $(TAG) && git push --tags --no-verify
next-tag:
make tag TAG=$(shell bin/generate_next_tag)
.PHONY: test