Skip to content

hopfenspace/runciv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

bc69ae6 · Dec 28, 2024
May 13, 2023
May 20, 2023
Dec 28, 2024
Mar 8, 2023
Mar 18, 2023
Mar 6, 2023
Dec 28, 2024
Dec 28, 2024
Mar 5, 2023
Mar 5, 2023
Apr 8, 2023
Mar 6, 2023
Mar 18, 2023
Mar 5, 2023

runciv

license dependency status ci status

runciv is a server for unciv written in pure rust!

Building the server

At the time of this writing, there is no precompiled server available, you have to compile it from source.

Dependencies

You need to have cargo installed. The easiest way to retrieve it, is through rustup.

On debian-like systems build-essential is also required.

After installation of cargo, execute:

Build from source

Install build dependencies:

cargo install cargo-make

Build the project.

cargo make

The resulting binary will be in target/release/runciv.

System configuration

First, create a user and group for the service:

useradd -r -U runciv -s /bin/bash

Copy the service file to /etc/systemd/system/ and reload systemd:

cp runciv.service /etc/systemd/system/
systemctl daemon-reload

Install the runciv binary:

install -o root target/release/runciv /usr/local/bin/runciv

Create a new database & database user:

su - postgres -c "createuser -P runciv"
su - postgres -c "createdb -O runciv runciv"

Apply the migrations:

runciv migrate --migration-dir migrations/

Copy example.config.toml to /etc/runciv/config.toml and edit the file to match your desired configuration.

Finally, restart and enable runciv:

systemctl enable runciv
systemctl start runciv

Suggestions & Discussions

If you'd like to discuss something, use our Discussions :)

About

A rust unciv server

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published