i have been deploying app bash terminal using app.yaml script , command: gcloud app deploy app.yaml
this runs main.app script set environment custom made docker image. how can deploy locally can make small changes , see effects before deploying takes quite while?
if want run app locally, should able outside of docker container. place few restrictions on environment - largely need make sure you're listening on port 8080.
however if want test locally docker - can...
# generate dockerfile applications gcloud beta app gen-config --custom # build docker container docker build -t myapp . # run container docker run -it -p 8080:8080 myapp
from there, should able hit http://localhost:8080 , see app running.
hope helps!
Comments
Post a Comment