This is a Kobweb project for generating the Kobweb site itself.
The goal of this site will be to highlight the features provided by the framework and the place to read documentation about it.
Make sure to include the app.json at the root of your repository
-
Build docker image
docker build -t kobweb-site .
-
Incase you first want to make sure the website runs locally
docker run -p 8080:8080 kobweb-site
-
Gcloud config to push the image to google cloud registry
gcloud auth login
gcloud auth configure-docker
-
Tag the image
docker tag kobweb-site gcr.io/kobweb-example-website-1/kobweb-site-service:1
-
Push the image to the GCP Container Registry
docker push gcr.io/kobweb-example-website-1/kobweb-site-service:1
Run the following command to deploy your app:
gcloud run deploy kobweb-site-service\
--project=kobweb-example-website-1\
--platform=managed\
--region=us-central1\
--image=gcr.io/kobweb-example-website-1/kobweb-site-service:1\
--port=8080\
--allow-unauthenticated\
--memory=1024Mi\
--cpu=1\
--no-use-http2