cp view/.env.production view/.env.local
chmod 777 setup.sh
./setup.sh
- go to
http://localhost/
make up
- start docker environmentmake down
- stop docker environmentmake
/make help
- show available commands
If you would like ot use App Engine on GCP there are two yaml files at the root of the directory. Once App Engine turned on and the SDK is downloaded locally run the below commands to deploy.
Deploy the api container
gcloud app deploy api/app.yaml
Deploy the view container
gcloud app deploy view/app.yaml
- Enable App Engine
- setup a default container this can take a few min
- Need to be signed in to gcp
gcloud auth login
- Enable Repository on cloud build
- this service account will need the "service account user“ role
- Enable Artifact Registry API
- Enable App Engine API Admin
- Create an artifact repository, here I called it personal
- In Cloud repository authenticate your github account
- Choose the branch
- To communicate between services we need the services URL. For further documentation see here.
- To enable debugging on your app engine flex environment enter the following in your terminal
gcloud app --project PROJECT-ID instances enable-debug
docs - Further information about app.yaml configuration documentation
- The App Engine port's have to be on 8080