forked from Samfundet/Samfundet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (45 loc) · 1.11 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
.PHONY: all
all:
bundle install
bundle exec rake db:migrate
.PHONY: run
run:
bundle exec rails server
.PHONY: copy-config-files
copy-config-files:
cp config/database.example.yml config/database.yml
cp config/local_env.example.yml config/local_env.yml
cp config/billig.example.yml config/billig.yml
cp config/secrets.example.yml config/secrets.yml
.PHONY: copy-travis-files
copy-travis-files:
cp config/database.travis.yml config/database.yml
.PHONY: lint
lint:
bundle exec rubocop -D
.PHONY: format
format:
bundle exec rubocop -x
.PHONY: test
test:
rspec .
.PHONY: deploy-production
deploy-production:
bundle exec mina deploy:production
.PHONY: deploy-staging
deploy-staging:
bundle exec mina deploy:staging
.PHONY: git-hooks
git-hooks:
ln -fs hooks/* .git/hooks
localseed:
RAILS_ENV=development rake db:seed
truncate:
RAILS_ENV=development rake db:seed:development:truncate
setup-mac:
sh setup-mac.sh
.PHONY: generate-diagrams
generate-diagrams:
[ -d docs/diagrams ] || mkdir docs/diagrams
railroady -M | neato -Tsvg > docs/diagrams/models.svg
railroady -C | neato -Tsvg > docs/diagrams/controllers.svg