github.com/machinebox/remoto@v0.1.2-0.20191024144331-eff21a7d321f/console/Makefile (about)

     1  serve:
     2  	dev_appserver.py dispatch.yaml www/app.yaml api/app.yaml
     3  
     4  build: copyassets
     5  	cd www ; npm run build # see build command in www/package.json
     6  
     7  clean:
     8  	rm -rf ./api/templates
     9  	rm -rf ./www/vendor
    10  
    11  copyassets: clean
    12  	cp -R ../templates ./api/templates
    13  	mkdir -p ./www/vendor/github.com/machinebox/remoto
    14  	cp -R ../remototypes ./www/vendor/github.com/machinebox/remoto/remototypes/
    15  	echo "Folder is generated by: make copyassets" >> ./www/vendor/README
    16  
    17  deploy: build
    18  	gcloud config set project remotoconsole
    19  	gcloud app deploy www/app.yaml -v v1 -q
    20  	gcloud app deploy api/app.yaml -v v1 -q
    21  	gcloud app deploy dispatch.yaml -q