Skip to content

Commit

Permalink
Update more docs for dotnet 9.0 (#380)
Browse files Browse the repository at this point in the history
See space-wizards/SS14.Watchdog#34,
space-wizards/Robust.Cdn#7 and
space-wizards/SS14.Admin#76

---------

Signed-off-by: null <56081759+NullWanderer@users.noreply.github.com>
  • Loading branch information
NullWanderer authored Jan 17, 2025
1 parent 80bf8b6 commit 8890ca8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/en/server-hosting/setting-up-robust-cdn.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ sudo chmod -R u+w,g+w builds/ database/ manifest/

### Manual compilation

If you hate containers, you can manually publish Robust.Cdn and deploy the files yourself. For this you will need Git and the .NET 8 SDK. The server that will run the build needs the matching ASP.NET Core Runtime installed, but does not need the SDK itself.
If you hate containers, you can manually publish Robust.Cdn and deploy the files yourself. For this you will need Git and the .NET 9 SDK. The server that will run the build needs the matching ASP.NET Core Runtime installed, but does not need the SDK itself.

Clone the git repo, then publish:

Expand All @@ -95,7 +95,7 @@ cd Robust.Cdn
dotnet publish -c Release -r linux-x64 --no-self-contained
```

The finished build will be dropped in `Robust.Cdn/bin/Release/net8.0/linux-x64/publish`. You can copy these into some random location you fancy like `/opt` and run `Robust.Cdn` from there. For example:
The finished build will be dropped in `Robust.Cdn/bin/Release/net9.0/linux-x64/publish`. You can copy these into some random location you fancy like `/opt` and run `Robust.Cdn` from there. For example:

```
/opt/robust_cdn/
Expand Down Expand Up @@ -131,7 +131,7 @@ For the love of Miku and all that is holy, do not run the CDN from directly with

## Configuration

Robust.Cdn is an ASP.NET Core app, so it supports configuration both via config file and other sources such as environment variables. You can see [ASP.NET Core's documentation](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-8.0) for a more in-depth overview.
Robust.Cdn is an ASP.NET Core app, so it supports configuration both via config file and other sources such as environment variables. You can see [ASP.NET Core's documentation](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/?view=aspnetcore-9.0) for a more in-depth overview.

Most configuration of Robust.Cdn is done via the `appsettings.json` config file. Here is a complete reference of its contents:

Expand Down
3 changes: 2 additions & 1 deletion src/en/server-hosting/setting-up-ss14-admin.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ This document will explain what you will need to set yourself up with your own i

## Prerequisites

- .NET 9 SDK (If you're running a server, you should already have this. If not, get it [here](https://dotnet.microsoft.com/en-us/download/dotnet/9.0))
- A PostgreSQL database already set up with your server(s). ([Some details to that are here](../general-development/setup/server-hosting-tutorial.md))
- A domain name or at least a DDNS domain.
- A web server to do a reverse proxy, like Caddy or Nginx. I am assuming you know how to set this up yourself. (To save your sanity I included the nginx config below though)
Expand All @@ -15,7 +16,7 @@ Clone the code, then recursive the latest SS14 which can be easily done with `gi

After that you can compile it with `dotnet publish -c Release -r linux-x64 --no-self-contained`.

The files will be dropped in `SS14.Admin/bin/Release/net7.0/linux-x64/publish`.
The files will be dropped in `SS14.Admin/bin/Release/net9.0/linux-x64/publish`.

`SS14.Admin` is the executable to run, I would recommend copying those files somewhere else like `/opt/SS14.Admin`.

Expand Down
12 changes: 6 additions & 6 deletions src/en/server-hosting/setting-up-ss14-watchdog.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ It is also worth going through the custom codebases section, especially if you i
### 1. Check Prerequisites

You need to have:
+ .NET 8 SDK
+ ASP .NET Core 8 Runtime
+ .NET 9 SDK
+ ASP .NET Core 9 Runtime

Both of these can be found at the [.NET 8 download page](https://dotnet.microsoft.com/en-us/download/dotnet/8.0).
Both of these can be found at the [.NET 9 download page](https://dotnet.microsoft.com/en-us/download/dotnet/9.0).

On Linux use your favourite package manager (apt, dnf, pacman, brew etc) according to [Microsoft's installation instructions](https://learn.microsoft.com/en-us/dotnet/core/install/linux).

Expand All @@ -44,11 +44,11 @@ git clone --recursive https://github.com/space-wizards/SS14.Watchdog
cd SS14.Watchdog
# Build the Watchdog.
# The result is placed into: SS14.Watchdog/bin/Release/net8.0/linux-x64/publish
# The result is placed into: SS14.Watchdog/bin/Release/net9.0/linux-x64/publish
dotnet publish -c Release -r linux-x64 --no-self-contained
```

The contents of `SS14.Watchdog/bin/Release/net8.0/linux-x64/publish` can then be copied to some other place. You will continue your work here.
The contents of `SS14.Watchdog/bin/Release/net9.0/linux-x64/publish` can then be copied to some other place. You will continue your work here.


### 3. Run
Expand Down Expand Up @@ -87,7 +87,7 @@ In particular, this can be used to expose the Watchdog outside of localhost with
Urls: "http://*:5000"
```
See the relevant documentation for more details: [docs.microsoft.com](https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/web-host?view=aspnetcore-8.0#server-urls)
See the relevant documentation for more details: [docs.microsoft.com](https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/web-host?view=aspnetcore-9.0#server-urls)
Be sure to adjust BaseUrl accordingly!
Expand Down

0 comments on commit 8890ca8

Please sign in to comment.