From 1927a8a8f7416c40bf9df0436058b1e611fc54be Mon Sep 17 00:00:00 2001 From: Spencer Gibb Date: Tue, 16 Aug 2016 12:10:30 -0600 Subject: [PATCH] polish --- README.adoc | 2 +- spring-cloud-launcher/README.md | 6 ++++-- .../cloud/launcher/cli/LauncherCommand.java | 9 +++------ 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/README.adoc b/README.adoc index ac45bb2..683fc3c 100644 --- a/README.adoc +++ b/README.adoc @@ -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). diff --git a/spring-cloud-launcher/README.md b/spring-cloud-launcher/README.md index 178aaac..239523e 100644 --- a/spring-cloud-launcher/README.md +++ b/spring-cloud-launcher/README.md @@ -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 diff --git a/spring-cloud-launcher/spring-cloud-launcher-cli/src/main/java/org/springframework/cloud/launcher/cli/LauncherCommand.java b/spring-cloud-launcher/spring-cloud-launcher-cli/src/main/java/org/springframework/cloud/launcher/cli/LauncherCommand.java index e10c9a0..c0ea665 100644 --- a/spring-cloud-launcher/spring-cloud-launcher-cli/src/main/java/org/springframework/cloud/launcher/cli/LauncherCommand.java +++ b/spring-cloud-launcher/spring-cloud-launcher-cli/src/main/java/org/springframework/cloud/launcher/cli/LauncherCommand.java @@ -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"),