Created
May 28, 2019 06:36
-
-
Save thnk2wn/ad1e1dbfa5c4c96d6ca59a72a00e45c9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$eurekaLocalPath = "C:\Projects\eureka" | |
# JAVA_HOME must be set for maven build | |
# needs to be set to a JDK dir not JRE otherwise: | |
# No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? | |
$env:JAVA_HOME = "C:\Program Files\Java\jdk1.8.0_191" | |
if (!(Test-Path $eurekaLocalPath)) { | |
"Cloning Eureka" | |
git clone https://github.com/spring-cloud-samples/eureka.git $eurekaLocalPath | |
} | |
Push-Location $eurekaLocalPath | |
"Pulling Eureka from Github" | |
git pull -p | |
"Running Eureka" | |
# This will take some time on the initial run | |
.\mvnw spring-boot:run | |
Pop-Location |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment