Skip to content

Instantly share code, notes, and snippets.

@md-weber
Created August 31, 2019 08:59
Show Gist options
  • Save md-weber/48fa6ba764bee530b8133b673d3a5b71 to your computer and use it in GitHub Desktop.
Save md-weber/48fa6ba764bee530b8133b673d3a5b71 to your computer and use it in GitHub Desktop.
function Get-ScriptDirectory
{
Split-Path $MyInvocation.ScriptName
}
Write-Host "Startup Server..."
$ServerFolder = Join-Path -Path (get-item (Get-ScriptDirectory)).Parent.FullName -ChildPath "server";
Start-Process powershell -ArgumentList "aqueduct serve" -WorkingDirectory $ServerFolder;
Write-Host "Started Client,..."
$ClientFolder = Join-Path -Path (get-item (Get-ScriptDirectory)).Parent.FullName -ChildPath "client";
Start-Process powershell -ArgumentList "webdev serve --auto restart" -WorkingDirectory $ClientFolder;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment