polish
This commit is contained in:
@@ -8,7 +8,7 @@ Cloud]. You can write Groovy scripts to run Spring Cloud component
|
||||
applications (e.g. `@EnableEurekaServer`). You can also easily do
|
||||
things like encryption and decryption to support Spring Cloud Config
|
||||
clients with secret configuration values. With the Launcher CLI you
|
||||
can also launch services like Eureka, Zipkin, Config Server
|
||||
can launch services like Eureka, Zipkin, Config Server
|
||||
conveniently all at once from the command line (very useful at
|
||||
development time).
|
||||
|
||||
|
||||
@@ -49,9 +49,11 @@ spring cloud eureka,configserver
|
||||
|
||||
### Config Server git uri
|
||||
|
||||
To run configserver with a git repo use the `--git-uri` option. For example:
|
||||
To run configserver with a git repo set the following in `./configserver.yml`:
|
||||
```
|
||||
spring cloud --git-uri=http://mygitserver/myrepo.git configserver
|
||||
spring:
|
||||
profiles.active: git
|
||||
cloud.config.server.git.uri: http://mygitserver/myrepo.git
|
||||
```
|
||||
|
||||
### Stopping
|
||||
|
||||
@@ -61,8 +61,6 @@ public class LauncherCommand extends OptionParsingCommand {
|
||||
EXAMPLES.add(new HelpExample("Launch Config Server and Eureka",
|
||||
"spring cloud configserver eureka"));
|
||||
EXAMPLES.add(new HelpExample("List deployable apps", "spring cloud --list"));
|
||||
EXAMPLES.add(new HelpExample("Launch Config Server with git repo",
|
||||
"spring cloud --git-uri=http://example.com/proj.git configserver"));
|
||||
}
|
||||
|
||||
public LauncherCommand() {
|
||||
@@ -82,10 +80,9 @@ public class LauncherCommand extends OptionParsingCommand {
|
||||
|
||||
@Override
|
||||
protected void options() {
|
||||
// if the classloader is loaded here, we could load a collection of interfaces
|
||||
// that
|
||||
// can create options and then populate the args[] that is sent to the
|
||||
// DeployerThread
|
||||
// if the classloader is loaded here, we could load a collection of
|
||||
// interfaces that can create options and then populate the args[]
|
||||
// that is sent to the DeployerThread
|
||||
this.debugOption = option(Arrays.asList("debug", "d"),
|
||||
"Debug logging for the deployer");
|
||||
this.listOption = option(Arrays.asList("list", "l"),
|
||||
|
||||
Reference in New Issue
Block a user