Add cacerts and --local

This commit is contained in:
Dave Syer 2013-06-07 12:26:56 +01:00
parent f60cfcb910
commit 8cd59a97ab
5 changed files with 15 additions and 2 deletions

1
.gitignore vendored
View File

@ -11,4 +11,5 @@ build
target
.springBeans
spring
grapes
spring.zip

View File

@ -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`.

View File

@ -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

BIN
cacerts Normal file

Binary file not shown.

View File

@ -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