diff --git a/README.md b/README.md index c4f7a6c..8271318 100644 --- a/README.md +++ b/README.md @@ -7,16 +7,25 @@ ChessServer is just a simple chess server for [Aiursoft](https://www.aiursoft.com) to test our new features. + ## Run in Ubuntu -First, specify a domain name for your Ubuntu 18.04+, brand-new server. +The following script will install\update this app on your Ubuntu server. Supports Ubuntu 22.04. -And execute the following command in the server: +On your Ubuntu server, run the following command: ```bash curl -sL https://gitlab.aiursoft.cn/aiursoft/chessserver/-/raw/master/install.sh | sudo bash ``` +Of course it is suggested that append a custom port number to the command: + +```bash +curl -sL https://gitlab.aiursoft.cn/aiursoft/chessserver/-/raw/master/install.sh | sudo bash -s 8080 +``` + +It will install the app as a systemd service, and start it automatically. Binary files will be located at `/opt/apps`. Service files will be located at `/etc/systemd/system`. + ## Run locally Requirements about how to run diff --git a/install.sh b/install.sh index 24b2bfe..9b209cd 100644 --- a/install.sh +++ b/install.sh @@ -48,4 +48,4 @@ install() # This will install this app under /opt/apps and register a new service with systemd. # Example: install 5000 -install "$@" +install "$@" \ No newline at end of file diff --git a/src/Aiursoft.ChessServer/Views/Shared/_Layout.cshtml b/src/Aiursoft.ChessServer/Views/Shared/_Layout.cshtml index 962dc3d..90fe52c 100644 --- a/src/Aiursoft.ChessServer/Views/Shared/_Layout.cshtml +++ b/src/Aiursoft.ChessServer/Views/Shared/_Layout.cshtml @@ -31,6 +31,9 @@