-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
44 lines (31 loc) · 901 Bytes
/
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
# Makefile
SHELL := /bin/zsh # could be changed to your shell
# All tasks should be added here, otherwise Make tries to create the folder with the same name and skip the task if the folder exists
.PHONY: env db dev console stop server prepare test yarn front
dev: env db
prepare: env db yarn
bundle install
bundle exec rake db:prepare
bundle exec rake webpacker:install
bundle exec rake assets:clobber
- bundle exec rake webpacker:compile
yarn:
yarn add [email protected]
yarn add @popperjs/[email protected]
yarn add chart.js
env:
source ./.env.development
db:
docker-compose -f docker-compose-local.yml up -d db redis
console:
bundle exec rails c
server:
bundle exec rails s
docker_server:
docker-compose -f docker-compose-local.yml up -d web
test:
bundle exec rspec
stop:
docker-compose -f docker-compose-local.yml down
front:
bundle exec ./bin/webpack-dev-server