-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommand.txt
24 lines (22 loc) · 1.67 KB
/
command.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<<< GENERATE API JS FROM PROTO FILES >>>
protoc -I=. Actor.proto --js_out=import_style=commonjs:. --grpc-web_out=import_style=commonjs,mode=grpcwebtext:.
protoc -I=. Auth.proto --js_out=import_style=commonjs:. --grpc-web_out=import_style=commonjs,mode=grpcwebtext:.
protoc -I=. ParkingLot.proto --js_out=import_style=commonjs:. --grpc-web_out=import_style=commonjs,mode=grpcwebtext:.
protoc -I=. Contact.proto --js_out=import_style=commonjs:. --grpc-web_out=import_style=commonjs,mode=grpcwebtext:.
protoc -I=. Booking.proto --js_out=import_style=commonjs:. --grpc-web_out=import_style=commonjs,mode=grpcwebtext:.
<<< BUILD WEB AS DEV MODE >>>
remove build folder inside admin module and client module
cd into, change API URL in src/saigonparking.js and build admin module as dev mode: npm run build-dev
cd into, change API URL in src/saigonparking.js and build client module as dev mode: npm run build-dev
cd into, change API URL in src/saigonparking.js and build parkinglot module as dev mode: npm run build-dev
cd into root folder
docker build --rm -f web_dev.Dockerfile -t saigonparkingmap/webserver:dev .
docker push saigonparkingmap/webserver:dev
<<< BUILD WEB AS PRODUCTION MODE >>>
remove build folder inside admin module and client module
cd into, change API URL in src/saigonparking.js and build admin module as produciton mode: npm run build
cd into, change API URL in src/saigonparking.js and build client module as production mode: npm run build
cd into, change API URL in src/saigonparking.js and build parkinglot module as production mode: npm run build
cd into root folder
docker build --rm -f web_prod.Dockerfile -t saigonparkingmap/webserver:prod .
docker push saigonparkingmap/webserver:prod