-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
62 lines (46 loc) · 1.05 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
.PHONY: install outdated run migrate setup stop_spring test guard drop_db prod_setup prod_run
install:
bin/bundle install
outdated:
bin/bundle outdated
migrate:
bin/rake db:create
bin/rake db:migrate
setup: migrate
bin/rake user:create_default
run:
bin/rails server
worker:
bin/rake jobs:work
foreman:
bin/foreman start
console:
bin/rails console
stop_spring:
bin/spring stop
lint:
bin/rubocop
test:
bin/rspec
guard:
bin/guard
drop_db:
bin/rake db:drop
# Production commands for development
# NOTICE: This custom rake task (`lib/tasks/db.rake`) uses
# the `postgres` user to create another PostgreSQL role/user
prod_create_db_user: export RAILS_ENV=production
prod_create_db_user:
bin/rake db:create_user
prod_setup: export RAILS_ENV=production
prod_setup:
bin/rake db:setup
bin/rake user:create
prod_run:
prod_run: export RAILS_ENV=production
prod_run: export RAILS_SERVE_STATIC_FILES=true
prod_run: export RAILS_LOG_TO_STDOUT=true
prod_run: export PORT=3000
prod_run:
bin/rake assets:precompile
bin/foreman start -f Procfile_production