Skip to content

Commit

Permalink
Simplified running server for integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xperiandri committed Sep 1, 2024
1 parent c90a46a commit 5829eaf
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions build/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,7 @@ let startGraphQLServer (project : string) port (streamRef : DataRef<Stream>) =
})
project

let projectName = Path.GetFileNameWithoutExtension (project)
let projectPath = Path.GetDirectoryName (project)

let serverExe =
projectPath
</> "bin"
</> configurationString
</> DotNetMoniker
</> (projectName + ".dll")

CreateProcess.fromRawCommandLine "dotnet" $"{serverExe} --configuration {configurationString} --urls=http://localhost:%i{port}/"
CreateProcess.fromRawCommandLine "dotnet" $"run --project {project} --configuration {configurationString} --urls=http://localhost:%i{port}/"
|> CreateProcess.withStandardInput (CreatePipe streamRef)
|> Proc.start
|> ignore
Expand Down

0 comments on commit 5829eaf

Please sign in to comment.