mirror of
https://gitee.com/dcren/initializr.git
synced 2026-02-26 13:43:15 +08:00
Cleanup for spring.io, update docs
This commit contains a number of changes, no functional difference in the app but a general cleanup of look and docs: - removed the Gemfile which is now redundant, Cloud Foundry CLI is no longer a Ruby app - updated various parts of the README to reflect changes to Spring Boot CLI (local flag no longer exists, etc) and new CF deployment procedure. - fixed references to www.springsource.com -> spring.io throughout web content - added favicon reflecting new Spring branding - updated github URLs springsource -> spring-projects
This commit is contained in:
38
README.md
38
README.md
@@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
You need Java (1.6 or better) and a bash-like shell.
|
You need Java (1.6 or better) and a bash-like shell.
|
||||||
|
|
||||||
If you are on a Mac and using [homebrew](http://brew.sh/), all you must do to install it is:
|
If you are on a Mac and using [homebrew](http://brew.sh/), all you need to do to install it is:
|
||||||
|
|
||||||
$ brew install spring-boot-cli
|
$ brew install spring-boot-cli
|
||||||
|
|
||||||
It will install `/usr/local/bin/spring`. You can jump right to [running the app](#running_the_app).
|
It will install `/usr/local/bin/spring`. You can jump right to [running the app](#running_the_app).
|
||||||
|
|
||||||
An alternative way to install the `spring` command line interface can be installed like this:
|
An alternative way to install the `spring` command line interface can be installed like this:
|
||||||
@@ -17,8 +17,8 @@ An alternative way to install the `spring` command line interface can be install
|
|||||||
After running that command you should see a `spring` directory:
|
After running that command you should see a `spring` directory:
|
||||||
|
|
||||||
$ ./spring/bin/spring --help
|
$ ./spring/bin/spring --help
|
||||||
|
|
||||||
usage: spring [--help] [--version]
|
usage: spring [--help] [--version]
|
||||||
<command> [<args>]
|
<command> [<args>]
|
||||||
...
|
...
|
||||||
|
|
||||||
@@ -26,12 +26,12 @@ You could add that `bin` directory to your `PATH` (the examples below
|
|||||||
assume you did that).
|
assume you did that).
|
||||||
|
|
||||||
If you don't have `curl` or `zip` you can probably get them (for
|
If you don't have `curl` or `zip` you can probably get them (for
|
||||||
Windoze users we recommend [cygwin](http://cygwin.org)), or you can
|
Windows users we recommend [cygwin](http://cygwin.org)), or you can
|
||||||
download the [zip file](http://start.spring.io/spring.zip) and unpack
|
download the [zip file](http://start.spring.io/spring.zip) and unpack
|
||||||
it yourself.
|
it yourself.
|
||||||
|
|
||||||
<a name="running_the_app"></a>
|
<a name="running_the_app"></a>
|
||||||
## Running the app
|
## Running the app locally
|
||||||
|
|
||||||
Use the spring command:
|
Use the spring command:
|
||||||
|
|
||||||
@@ -39,12 +39,20 @@ Use the spring command:
|
|||||||
|
|
||||||
## Deploying to Cloud Foundry
|
## Deploying to Cloud Foundry
|
||||||
|
|
||||||
To help avoid a timeout on startup you should upload all the
|
If you are on a Mac and using [homebrew](http://brew.sh/), install the Cloud Foundry CLI:
|
||||||
dependencies. You can get those locally by running the app with
|
|
||||||
`--local`:
|
|
||||||
|
|
||||||
$ spring run --local app.groovy
|
$ brew install cloudfoundry-cli
|
||||||
|
|
||||||
this will create a local directory `grapes/` with all the jar
|
Alternatively, download a suitable binary for your platform from [Pivotal Web Services](https://console.run.pivotal.io/tools).
|
||||||
dependencies. Then when you `cf push` they will be uploaded and used
|
|
||||||
if the app is again launched with `--local`.
|
To help avoid a timeout on startup you should upload all the dependencies.
|
||||||
|
You can get those locally by running `spring grab`:
|
||||||
|
|
||||||
|
$ spring grab app.groovy
|
||||||
|
|
||||||
|
this will create a local directory `repository/` with all the jar dependencies.
|
||||||
|
Then when you `cf push` they will be uploaded and used.
|
||||||
|
|
||||||
|
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`.
|
||||||
|
|||||||
BIN
static/img/favicon.png
Normal file
BIN
static/img/favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 528 B |
@@ -50,7 +50,7 @@ To get started:
|
|||||||
$ spring --version
|
$ spring --version
|
||||||
$ spring help
|
$ spring help
|
||||||
|
|
||||||
And take a look at the README at https://github.com/springsource/spring-boot#readme.
|
And take a look at the README at https://github.com/spring-projects/spring-boot#readme.
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
elif type sudo >/dev/null 2>&1; then
|
elif type sudo >/dev/null 2>&1; then
|
||||||
@@ -64,7 +64,7 @@ To get started:
|
|||||||
$ spring --version
|
$ spring --version
|
||||||
$ spring help
|
$ spring help
|
||||||
|
|
||||||
And take a look at the README at https://github.com/springsource/spring-boot#readme.
|
And take a look at the README at https://github.com/spring-projects/spring-boot#readme.
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
else
|
else
|
||||||
@@ -76,7 +76,7 @@ Couldn't create the symlink. Please either:
|
|||||||
(3) Rerun this command to try again.
|
(3) Rerun this command to try again.
|
||||||
|
|
||||||
Then to get started, take a look at 'spring help' or see the README at
|
Then to get started, take a look at 'spring help' or see the README at
|
||||||
https://github.com/springsource/spring-boot#readme.
|
https://github.com/spring-projects/spring-boot#readme.
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
@@ -89,8 +89,8 @@ Now you need to do one of the following:
|
|||||||
cp ${SPRING_HOME}/bin /usr/bin/spring
|
cp ${SPRING_HOME}/bin /usr/bin/spring
|
||||||
|
|
||||||
Then to get started, take a look at 'spring help' or see the README at
|
Then to get started, take a look at 'spring help' or see the README at
|
||||||
https://github.com/springsource/spring-boot#readme.
|
https://github.com/spring-projects/spring-boot#readme.
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
trap - EXIT
|
trap - EXIT
|
||||||
|
|||||||
@@ -1,16 +1,17 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html">
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Spring Initializr</title>
|
<title>Spring Initializr</title>
|
||||||
<link rel="stylesheet"
|
<link rel="stylesheet"
|
||||||
href="/css/bootstrap.min.css"/>
|
href="/css/bootstrap.min.css"/>
|
||||||
|
<link rel="shortcut icon" type="image/x-icon" href="/img/favicon.png"/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="navbar">
|
<div class="navbar">
|
||||||
<div class="navbar-inner">
|
<div class="navbar-inner">
|
||||||
<a class="brand"
|
<a class="brand"
|
||||||
href="https://www.springsource.org">
|
href="https://spring.io">
|
||||||
Spring
|
Spring
|
||||||
</a>
|
</a>
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
|
|||||||
@@ -4,13 +4,14 @@
|
|||||||
<title>Spring Initializr</title>
|
<title>Spring Initializr</title>
|
||||||
<link rel="stylesheet"
|
<link rel="stylesheet"
|
||||||
href="/css/bootstrap.min.css"/>
|
href="/css/bootstrap.min.css"/>
|
||||||
|
<link rel="shortcut icon" type="image/x-icon" href="/img/favicon.png"/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="navbar">
|
<div class="navbar">
|
||||||
<div class="navbar-inner">
|
<div class="navbar-inner">
|
||||||
<a class="brand"
|
<a class="brand"
|
||||||
href="https://www.springsource.org">
|
href="https://spring.io">
|
||||||
Spring
|
Spring
|
||||||
</a>
|
</a>
|
||||||
<ul class="nav">
|
<ul class="nav">
|
||||||
|
|||||||
Reference in New Issue
Block a user