Giter Site home page Giter Site logo

Comments (4)

chanseokoh avatar chanseokoh commented on July 2, 2024

You already specified the standard env in src/main/appengine/app.yaml.

runtime: java11
env: standard
instance_class: B8

But the current App Engine standard env doc doesn't mention the env element, so I'm guessing it defaults to standard when it's missing. OTOH, the flexible doc does say env: flexible is required.

env: flex Required: Select the flexible environment.


appengineDeployAll runs all the deploy tasks: appengineDeployCron, appengineDeployDispatch, appengineDeployDos, appengineDeployIndex, appengineDeployQueue, and most importantly, appengineDeploy. That is, it deploys all the YAML config files together with the app.

from appengine-plugins.

pradeepsimba avatar pradeepsimba commented on July 2, 2024

gradle.build

    buildscript {
        repositories {
            mavenCentral()
        }
        dependencies {
            classpath 'com.google.cloud.tools:appengine-gradle-plugin:2.4.5'
        }
    }
    
    plugins {
        id 'java'
        id 'org.springframework.boot' version '2.5.4'
        id 'io.spring.dependency-management' version '1.0.11.RELEASE'
    }
    
    apply plugin: 'com.google.cloud.tools.appengine'
    
    repositories {
        mavenCentral()
        maven { url "https://packages.jetbrains.team/maven/p/ij/intellij-dependencies" }
        flatDir {
            dirs 'lib'
        }
        google()
    }
    
    dependencies {
        testImplementation platform('org.junit:junit-bom:5.9.1')
        testImplementation 'org.junit.jupiter:junit-jupiter'
    
        implementation 'com.google.firebase:firebase-database:20.0.1'
        implementation 'com.google.firebase:firebase-admin:9.0.0'
        // https://mvnrepository.com/artifact/org.json/json
        implementation group: 'org.json', name: 'json', version: '20230618'
    
        implementation 'org.springframework.boot:spring-boot-starter-web'
        implementation 'org.springframework.boot:spring-boot-starter'
        testImplementation 'org.springframework.boot:spring-boot-starter-test'
    }
    
    test {
        useJUnitPlatform()
    }
    
    appengine {
        deploy {
            stopPreviousVersion = true
        }
    }

below code is a common way to configure an App Engine app to stop the previous version when the new version is deployed using the gcloud command-line tool.

appengine {
    deploy {
        stopPreviousVersion = true
    }
}

If I push new code to github it will automatically deploy it on gcloud and stop the previous version app.

How do I do this with this plugin ?

from appengine-plugins.

stjasink avatar stjasink commented on July 2, 2024

How do I do this with this plugin ?

appengine {
	deploy {
		stopPreviousVersion = true
	}
}

from appengine-plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.