-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
47 lines (42 loc) · 1.14 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
hosting:
rm -rf ./public/
mkdir -p ./public/
mkdir -p ./public/pokemon63/
cp -r ./.nuxt/dist/client ./public/pokemon63/_nuxt/
cp -r ./src/static/ ./public/pokemon63/
yarn firebase deploy --only hosting --project "${FIREBASE_PROJECT_ID}" --token "${FIREBASE_TOKEN}"
build:
yarn
yarn build
ssr:
gcloud builds submit --tag gcr.io/pokedri-minnnano63/web:1.2.0
gcloud beta run deploy web --image gcr.io/pokedri-minnnano63/web:1.2.0 --region asia-northeast1 --platform managed --quiet
deploy:
rm .env
cp .env.production .env
make build
make ssr
make hosting
# cp -r ../pp-counter/dist/ ./public/pp-counter
yarn firebase deploy
rm .env
cp .env.sample .env
ci-deploy:
make build
make ssr
make hosting
yarn firebase deploy --project "${FIREBASE_PROJECT_ID}" --token "${FIREBASE_TOKEN}"
create-data:
yarn ts-node ./.cli/__001_flatten_images.ts
sleep 60
yarn ts-node ./.cli/__002_addframe.ts
sleep 30
yarn ts-node ./.cli/__004_autocrop.ts
sleep 30
yarn ts-node ./.cli/dex/__001_diet.ts
sleep 5
yarn ts-node ./.cli/dex/__002_flatten_dex.ts
sleep 5
yarn ts-node ./.cli/dex/__003_phash.ts
sleep 5
yarn ts-node ./.cli/dex/__004_dexgen.ts