mirror of
https://gitee.com/dcren/initializr.git
synced 2025-09-20 02:29:44 +08:00
Add cacerts and --local
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -11,4 +11,5 @@ build
|
|||||||
target
|
target
|
||||||
.springBeans
|
.springBeans
|
||||||
spring
|
spring
|
||||||
|
grapes
|
||||||
spring.zip
|
spring.zip
|
||||||
|
11
README.md
11
README.md
@@ -30,3 +30,14 @@ Use the spring command:
|
|||||||
|
|
||||||
$ spring run app.groovy
|
$ spring run app.groovy
|
||||||
|
|
||||||
|
## Deploying to Cloud Foundry
|
||||||
|
|
||||||
|
To help avoid a timeout on startup you should upload all the
|
||||||
|
dependencies. You can get those locally by running the app with
|
||||||
|
`--local`:
|
||||||
|
|
||||||
|
$ spring run --local app.groovy
|
||||||
|
|
||||||
|
this will create a local directory `grapes/` with all the jar
|
||||||
|
dependencies. Then when you `cf push` they will be uploaded and used
|
||||||
|
if the app is again launched with `--local`.
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
@Grab("org.springframework.bootstrap:spring-bootstrap-actuator:0.5.0.BUILD-SNAPSHOT")
|
@Grab("org.springframework.bootstrap:spring-bootstrap-actuator:0.5.0.BUILD-SNAPSHOT")
|
||||||
@Grab("org.codehaus.groovy:groovy-ant:2.1.3")
|
@Grab("org.codehaus.groovy:groovy-ant:2.1.3")
|
||||||
@Grab("org.codehaus.groovy.modules.http-builder:http-builder:0.5.2")
|
@Grab("org.codehaus.groovy.modules.http-builder:http-builder:0.5.2")
|
||||||
|
@Grab(group='net.sf.json-lib', module='json-lib', version='2.3', classifier='jdk15')
|
||||||
import groovyx.net.http.*
|
import groovyx.net.http.*
|
||||||
|
|
||||||
@Controller
|
@Controller
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
applications:
|
applications:
|
||||||
- name: spring
|
- name: spring
|
||||||
memory: 512M
|
memory: 1024M
|
||||||
instances: 1
|
instances: 1
|
||||||
url: spring.cfapps.io
|
url: spring.cfapps.io
|
||||||
path: .
|
path: .
|
||||||
command: ./spring/bin/spring run app.groovy -- --server.port=$PORT
|
command: JAVA_OPTS=-Djava.util.logging.config.file=logging.properties cp cacerts .jdk/lib/security && ./spring/bin/spring run --local app.groovy -- --server.port=$PORT
|
||||||
|
Reference in New Issue
Block a user