Skip to content

Commit 5829eaf

Browse files
committed
Simplified running server for integration tests
1 parent c90a46a commit 5829eaf

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

build/Program.fs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,7 @@ let startGraphQLServer (project : string) port (streamRef : DataRef<Stream>) =
8383
})
8484
project
8585

86-
let projectName = Path.GetFileNameWithoutExtension (project)
87-
let projectPath = Path.GetDirectoryName (project)
88-
89-
let serverExe =
90-
projectPath
91-
</> "bin"
92-
</> configurationString
93-
</> DotNetMoniker
94-
</> (projectName + ".dll")
95-
96-
CreateProcess.fromRawCommandLine "dotnet" $"{serverExe} --configuration {configurationString} --urls=http://localhost:%i{port}/"
86+
CreateProcess.fromRawCommandLine "dotnet" $"run --project {project} --configuration {configurationString} --urls=http://localhost:%i{port}/"
9787
|> CreateProcess.withStandardInput (CreatePipe streamRef)
9888
|> Proc.start
9989
|> ignore

0 commit comments

Comments
 (0)