import '../justfile'

project_id := "vs-gae"

serve-local: war 
    mvn jetty:run
war: 
    mvn war:war
    touch src/main/webapp/index.html
deploy:
    mvn package appengine:deploy -Dapp.deploy.projectId={{project_id}} -Dapp.deploy.version=GCLOUD_CONFIG

client-local:
    firefox http://localhost:8080/
client-cloud:
    gcloud app browse

setup:
    gcloud init
    distrobox enter gcloud -e sudo gcloud components install app-engine-java
    gcloud auth login
    gcloud app create --project {{project_id}}
