Last active
March 23, 2020 13:20
-
-
Save efleming969/e2765333b9fedb5ef12656e7ff1fa2a8 to your computer and use it in GitHub Desktop.
PowerShell script start development environment
This file contains hidden or 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
$Env:BROWSER="none" | |
$Env:RADIO_CONNECTION_STRING="Server=<sever-name>; Database=Radio; Integrated Security=False; User Id=sa; Password=P@ssw0rd;" | |
$Env:RADIO_HOST_API="http://localhost:5000" | |
$Env:RADIO_HOST_UI="http://localhost:3000" | |
$Env:CYPRESS_RADIO_HOST_UI=$Env:RADIO_HOST_UI | |
$Env:CYPRESS_RADIO_HOST_API=$Env:RADIO_HOST_API | |
$Env:REACT_APP_RADIO_API_BASE_URL=$Env:RADIO_HOST_API | |
Push-Location "./Radio.Migrations" | |
dotnet run | |
$migrations_succeeded=$? | |
Pop-Location | |
if ($migrations_succeeded) { | |
Push-Location "./Radio.Api" | |
Start-Process dotnet -ArgumentList "watch run" | |
Pop-Location | |
Push-Location "./Radio.Ui" | |
Start-Process npm -ArgumentList "start" | |
Pop-Location | |
Push-Location "./Radio.Test" | |
Start-Process npm -ArgumentList "run cypress:open" | |
Pop-Location | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment