Add system execution files to console project

This commit is contained in:
Cyberboss
2018-07-24 11:54:18 -04:00
parent dee4c3f9bb
commit d1b0a69340
4 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -46,4 +46,4 @@ COPY --from=publish /app .
RUN mkdir /config_data && mv appsettings.Docker.json /config_data/appsettings.Production.json
VOLUME ["/config_data"]
ENTRYPOINT ["dotnet", "Tgstation.Server.Host.Console.dll"]
ENTRYPOINT ["./tgs.sh"]
@@ -21,4 +21,13 @@
<ProjectReference Include="..\Tgstation.Server.Host.Watchdog\Tgstation.Server.Host.Watchdog.csproj" />
</ItemGroup>
<ItemGroup>
<None Update="tgs.bat">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="tgs.sh">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>
@@ -0,0 +1,2 @@
@echo off
dotnet %~dp0Tgstation.Server.Host.Console.dll
+4
View File
@@ -0,0 +1,4 @@
#!/bin/sh
script_full_path=$(dirname "$0")
exec dotnet "$script_full_path/Tgstation.Server.Host.Console.dll"