mirror of
https://gitee.com/dcren/initializr.git
synced 2025-04-05 17:38:06 +08:00
Add cacerts and --local
This commit is contained in:
parent
f60cfcb910
commit
8cd59a97ab
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,4 +11,5 @@ build
|
||||
target
|
||||
.springBeans
|
||||
spring
|
||||
grapes
|
||||
spring.zip
|
||||
|
11
README.md
11
README.md
@ -30,3 +30,14 @@ Use the spring command:
|
||||
|
||||
$ 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.codehaus.groovy:groovy-ant:2.1.3")
|
||||
@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.*
|
||||
|
||||
@Controller
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
applications:
|
||||
- name: spring
|
||||
memory: 512M
|
||||
memory: 1024M
|
||||
instances: 1
|
||||
url: spring.cfapps.io
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user