Skip to content

Commit

Permalink
[CE-424] Add make build-admin-js cmd in dev mode
Browse files Browse the repository at this point in the history
In dev mode, when run make start, need to trigger
`make build-admin-js` to update the local js files if necessary.

CE-424 #done.

Change-Id: I1f2d6ea64e52c8728acd1a5aa636bb9f870033cd
Signed-off-by: Baohua Yang <yangbaohua@gmail.com>
  • Loading branch information
yeasy committed Jul 28, 2018
1 parent 47c2eb0 commit 092e6d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
# - dockerhub-pull: Pulling service images from dockerhub
# - license: Checks sourrce files for Apache license header
# - help: Output the help instructions for each command
# - log: Check the recent log output of all services
# - log: Check the recent log output of given service
# - logs: Check the recent log output of all services
# - restart: Stop the cello service and then start
# - setup-master: Setup the host as a master node, install pkg and download docker images
# - setup-worker: Setup the host as a worker node, install pkg and download docker images
Expand Down Expand Up @@ -215,6 +216,9 @@ initial-env: ##@Configuration Initial Configuration for dashboard
start: ##@Service Start service
@$(MAKE) $(START_OPTIONS)
echo "Start all services with ${COMPOSE_FILE}... docker images must exist local now, otherwise, run 'make setup-master first' !"
if [ "$(MODE)" = "dev" ]; then \
make build-admin-js; \
fi
docker-compose -f ${COMPOSE_FILE} up -d --no-recreate
echo "Now you can visit operator-dashboard at localhost:8080, or user-dashboard at localhost:8081"

Expand Down

0 comments on commit 092e6d0

Please sign in to comment.