-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
52 lines (43 loc) · 2.07 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
api=https://group-manager-api.nutfes.net
build:
docker compose build
docker compose run --rm user_front npm install
docker compose run --rm admin_view npm install
docker compose run --rm api rails db:create
docker compose run --rm api rails db:migrate
docker compose run --rm api rails db:seed_fu FIXTURE_PATH=db/fixtures/develop
build mac:
PLATFORM=arm64-darwin docker compose build
docker compose run --rm user_front npm install
docker compose run --rm admin_view npm install
docker compose run --rm api rails db:create
docker compose run --rm api rails db:migrate
docker compose run --rm api rails db:seed_fu FIXTURE_PATH=db/fixtures/develop
build db:
docker compose run --rm api rails db:create
docker compose run --rm api rails db:migrate
docker compose run --rm api rails db:seed_fu FIXTURE_PATH=db/fixtures/develop
prod-build:
docker-compose -f docker-compose.prod.yml build
docker-compose -f docker-compose.prod.yml run --rm user_front npm install
docker-compose -f docker-compose.prod.yml run --rm admin_view npm install
docker-compose -f docker-compose.prod.yml run --rm user_front npm run build
docker-compose -f docker-compose.prod.yml run --rm admin_view npm run build
docker-compose -f docker-compose.prod.yml run --rm api rails db:migrate
prod-build-seed:
docker-compose -f docker-compose.prod.yml build
docker-compose -f docker-compose.prod.yml run --rm user_front npm install
docker-compose -f docker-compose.prod.yml run --rm admin_view npm install
docker-compose -f docker-compose.prod.yml run --rm user_front npm run build
docker-compose -f docker-compose.prod.yml run --rm admin_view npm build
docker-compose -f docker-compose.prod.yml run --rm api rails db:migrate
docker-compose -f docker-compose.prod.yml run --rm api rails db:seed_fu FIXTURE_PATH=db/fixtures/production
prod-up:
docker-compose -f docker-compose.prod.yml up -d
prod-down:
docker-compose -f docker-compose.prod.yml down
prod-restart:
docker-compose -f docker-compose.prod.yml down
docker-compose -f docker-compose.prod.yml up -d
prod-logs:
docker-compose -f docker-compose.prod.yml logs