Comments (4)
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.
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.
How do I do this with this plugin ?
appengine {
deploy {
stopPreviousVersion = true
}
}
from appengine-plugins.
Related Issues (20)
- Run on local AppEngine HOT 5
- appengine-gradle-plugin:2.5.0 throws an error with Gradle 8.5
- Transition to Artifact Registry HOT 1
- Infinite loop Vulnerability in commons-compress library version being used HOT 14
- Fixing Flaky Test HOT 1
- Security Policy violation Binary Artifacts HOT 6
- Fix Kokoro windows build script from environment change
- Normalize labels based on the internal mapping
- "--add-opens" flags are being added to JDK 8 invocations HOT 5
- FilePermissionTest fails on release_build.sh HOT 1
- Fix `prepare-release.yml` CI job HOT 1
- fix failing kokoro-windows test
- Support for GAE Java21 is coming soon HOT 1
- Java17 - appengine:run - Does not add JAVA_USER_OPTS to run command HOT 9
- [deploy] how to specify "no-cache" flag? HOT 2
- What happened to com.google.cloud.tools:endpoints-framework-gradle-plugin? HOT 2
- Make app-gradle-plugin configuration cache compatible HOT 6
- Remove usage of WarPluginConvention HOT 5
- Support lazy property evaluation (appengine.stage.setArtifact() doesn't carry task dependencies) HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appengine-plugins.