mirror of
https://gitee.com/dcren/initializr.git
synced 2025-04-05 17:38:06 +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:
parent
7096aa8661
commit
d1c98423a3
38
README.md
38
README.md
@ -2,12 +2,12 @@
|
||||
|
||||
## 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
|
||||
|
||||
|
||||
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:
|
||||
@ -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:
|
||||
|
||||
$ ./spring/bin/spring --help
|
||||
|
||||
usage: spring [--help] [--version]
|
||||
|
||||
usage: spring [--help] [--version]
|
||||
<command> [<args>]
|
||||
...
|
||||
|
||||
@ -26,12 +26,12 @@ You could add that `bin` directory to your `PATH` (the examples below
|
||||
assume you did that).
|
||||
|
||||
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
|
||||
it yourself.
|
||||
|
||||
<a name="running_the_app"></a>
|
||||
## Running the app
|
||||
## Running the app locally
|
||||
|
||||
Use the spring command:
|
||||
|
||||
@ -39,12 +39,20 @@ Use the spring command:
|
||||
|
||||
## 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`:
|
||||
If you are on a Mac and using [homebrew](http://brew.sh/), install the Cloud Foundry CLI:
|
||||
|
||||
$ 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`.
|
||||
$ brew install cloudfoundry-cli
|
||||
|
||||
Alternatively, download a suitable binary for your platform from [Pivotal Web Services](https://console.run.pivotal.io/tools).
|
||||
|
||||
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 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
|
||||
elif type sudo >/dev/null 2>&1; then
|
||||
@ -64,7 +64,7 @@ To get started:
|
||||
$ spring --version
|
||||
$ 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
|
||||
else
|
||||
@ -76,7 +76,7 @@ Couldn't create the symlink. Please either:
|
||||
(3) Rerun this command to try again.
|
||||
|
||||
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
|
||||
fi
|
||||
else
|
||||
@ -89,8 +89,8 @@ Now you need to do one of the following:
|
||||
cp ${SPRING_HOME}/bin /usr/bin/spring
|
||||
|
||||
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
|
||||
fi
|
||||
|
||||
trap - EXIT
|
||||
trap - EXIT
|
||||
|
@ -1,16 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html">
|
||||
<html>
|
||||
<head>
|
||||
<title>Spring Initializr</title>
|
||||
<link rel="stylesheet"
|
||||
href="/css/bootstrap.min.css"/>
|
||||
<link rel="shortcut icon" type="image/x-icon" href="/img/favicon.png"/>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="navbar">
|
||||
<div class="navbar-inner">
|
||||
<a class="brand"
|
||||
href="https://www.springsource.org">
|
||||
href="https://spring.io">
|
||||
Spring
|
||||
</a>
|
||||
<ul class="nav">
|
||||
|
@ -4,13 +4,14 @@
|
||||
<title>Spring Initializr</title>
|
||||
<link rel="stylesheet"
|
||||
href="/css/bootstrap.min.css"/>
|
||||
<link rel="shortcut icon" type="image/x-icon" href="/img/favicon.png"/>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="navbar">
|
||||
<div class="navbar-inner">
|
||||
<a class="brand"
|
||||
href="https://www.springsource.org">
|
||||
href="https://spring.io">
|
||||
Spring
|
||||
</a>
|
||||
<ul class="nav">
|
||||
|
Loading…
Reference in New Issue
Block a user