#!/bin/sh mkdir build cd main-web/client npm run build cd ../../ mv main-web/client/client build cd tools/janken npm run build cd ../../ mv tools/janken/tool build cd main-web/server npm run build cd ../../ cd build/ export catherine_db_endpoint=$(aws --region=ap-northeast-1 ssm get-parameter --name "db-endpoint" --with-decryption --output text --query Parameter.Value) export catherine_db_user=$(aws --region=ap-northeast-1 ssm get-parameter --name "db-username" --with-decryption --output text --query Parameter.Value) export catherine_db_pass=$(aws --region=ap-northeast-1 ssm get-parameter --name "db-password" --with-decryption --output text --query Parameter.Value) cat > .env <