Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
0.0.5.3
Browse files Browse the repository at this point in the history
* Docker compose fix
Make sure that you remove the file: "/opt/PavlovRconWebserver/appsettings.Production.json"
if it already exists and it's a folder, not a file.
  • Loading branch information
devinSpitz authored Jul 24, 2022
2 parents 33d35dd + 9932502 commit d85652e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion PavlovRconWebserver/PavlovRconWebserver.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<PackageVersion>0.0.4</PackageVersion>
<Title>PavlovRconWebserver</Title>
<Authors>Devin Spitz</Authors>
<AssemblyVersion>0.0.5.2</AssemblyVersion>
<AssemblyVersion>0.0.5.3</AssemblyVersion>
<LangVersion>9</LangVersion>
</PropertyGroup>
<ItemGroup>
Expand Down
10 changes: 5 additions & 5 deletions PavlovRconWebserver/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ services:
restart: always
image: mcr.microsoft.com/dotnet/sdk:5.0
volumes:
- /opt/PavlovRconWebserver/Database/:/build/Database/
- /opt/PavlovRconWebserver/appsettings.Production.json:/build/appsettings.Production.json
- /opt/PavlovRconWebserver:/build
environment:
- ASPNETCORE_ENVIRONMENT=Production
command:
- bash
- -c
- >
git clone https://github.com/devinSpitz/PavlovRconWebserver.git;
cd /PavlovRconWebserver/PavlovRconWebserver/;
dotnet publish -c release -o /build --runtime linux-x64 --self-contained true --framework net5.0;
cd /build/;
[ ! -f build/Database/Database.db ] && cp /PavlovRconWebserver/PavlovRconWebserver/DefaultDB/Database.db /build/Database/Database.db;
[ ! -f build/appsettings.Production.json ] && cp /PavlovRconWebserver/PavlovRconWebserver/appsettings.Development.json /build/appsettings.Production.json;
[ ! -f /build/Database/Database.db ] && cp /PavlovRconWebserver/PavlovRconWebserver/DefaultDB/Database.db /build/Database/Database.db;
[ ! -f /build/appsettings.Production.json ] && cp "/PavlovRconWebserver/PavlovRconWebserver/appsettings.Development.json" "/build/appsettings.Production.json";
/build/PavlovRconWebserver --urls=http://*:5001/;

0 comments on commit d85652e

Please sign in to comment.