11 lines
428 B
PowerShell
11 lines
428 B
PowerShell
$ErrorActionPreference = 'Stop'
|
|
|
|
$projectRoot = (Resolve-Path -LiteralPath (Join-Path $PSScriptRoot '..')).Path
|
|
$nodePath = (Get-Command node -ErrorAction Stop).Source
|
|
$outputLog = Join-Path $projectRoot 'data\scraper\supervisor.out.log'
|
|
$errorLog = Join-Path $projectRoot 'data\scraper\supervisor.err.log'
|
|
|
|
Set-Location -LiteralPath $projectRoot
|
|
& $nodePath 'tools/start-all.js' 1>> $outputLog 2>> $errorLog
|
|
exit $LASTEXITCODE
|