Skip to content

Commit

Permalink
pr reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
violet committed Sep 20, 2024
1 parent 97a00a0 commit 9742e7d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ The server, client and database can be easily ran in Docker:
- Run: `docker compose up -d`
- Access the game frontend at http://localhost:5173

You may have to wait a few seconds after the `docker compose up -d` command before the server is ready, while the database is being set up.

Database files will be stored in `mssql-data` directory.

To read the server logs, run `docker compose logs -f backend`.

To update the code in the future, run these commands:
```
docker compose down -rmi
docker compose down --rmi local
git pull
docker compose build frontend backend
docker compose up -d
Expand Down
5 changes: 5 additions & 0 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ RUN dotnet build -c Release -o bin

RUN dotnet tool install --global dotnet-ef

RUN echo "#!/bin/sh" >> /app/docker-entrypoint.sh \
&& echo "~/.dotnet/tools/dotnet-ef database update" >> /app/docker-entrypoint.sh \
&& echo "dotnet /app/bin/5dDiplomacyWithMultiverseTimeTravel.dll" >> /app/docker-entrypoint.sh \
&& chmod +x /app/docker-entrypoint.sh

CMD ["/app/docker-entrypoint.sh"]
1 change: 1 addition & 0 deletions server/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"ConnectionStrings": {
Expand Down
5 changes: 0 additions & 5 deletions server/docker-entrypoint.sh

This file was deleted.

0 comments on commit 9742e7d

Please sign in to comment.