mirror of
https://gitee.com/dcren/initializr.git
synced 2025-09-19 10:08:22 +08:00
Redirect Spring cli distribution bundle
This commit adds the '/spring' endpoint that is used to download the Spring CLI distribution bundle. Instead of relying on the presence of a local 'spring.zip' file uploaded as part of the application, a redirect to a configurable repository is used. It is possible to download both the zip and the tar.gz distribution by specifying the extension in the url (i.e. /spring.tar.gz provides the tar.gz distribution. Fixes gh-31
This commit is contained in:
10
README.md
10
README.md
@@ -71,14 +71,12 @@ An example Cloud Foundry `manifest.yml` file is provided. You should ensure that
|
||||
the application name and URL (name and host values) are suitable for your environment
|
||||
before running `cf push`.
|
||||
|
||||
You can jar up the app and make it executable in any environment. Care is needed with the includes and excludes:
|
||||
You can jar up the app and make it executable in any environment.
|
||||
|
||||
$ spring jar start.jar app.groovy
|
||||
|
||||
$ version=1.1.5.RELEASE
|
||||
$ wget -O spring.zip https://repo.spring.io/org/springframework/boot/spring-boot-cli/${version}/spring-boot-cli-${version}-bin.zip
|
||||
$ spring jar --include '+spring.zip' start.jar app.groovy
|
||||
|
||||
To deploy on Cloudfoundry:
|
||||
|
||||
|
||||
$ cf push start -p start.jar -n start-<space>
|
||||
|
||||
Where `<space>` is the name of the space. As a failsafe, and a
|
||||
|
Reference in New Issue
Block a user