A website about all things Lindy Hop in Aachen.
The database is created manually when the server starts up, if it does not yet exist. Make sure to create a ./db
direcotry. To manually set up the database, downloade the Diesel CLI with cargo install diesel_cli --no-default-features --features "sqlite-bundled"
, and execute diesel setup --database-url db/db.sqlite
.
Using cargo-watch, you can recompile Rust on file changes. Install it using cargo install cargo-watch
. Also install the Node.js dependencies with Yarn by running yarn install
.
Compiling server, styles, and admin, and recompiling each of them on changes, is done with
yarn watch
The Dockerfile can be used to compile everything into a distributable form. The artifacts will be in /lindyhop-aachen
, inside of which is the executable you need to run called lindyhop-aachen
.
docker build -t lindy .
docker create --name lindy lindy
.docker cp lindy:/lindyhop-aachen <your_output_dir>
- Execute
<your_output_dir>/lindyhop-aachen
You can download a precompiled binary along with all necessary files from this repository's releases. The dist.zip
contains all files necessary for running a fresh server.
In case you already have a version, copy only the non-config files. Notably, these files should not be overwritten:
Rocket.toml
: Your Rocket server config.db/
: Your database. Be aware that you might need to migrate your existing database to a new format.