Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Commit

Permalink
- Fixed a problem with hidden_users.txt being overwritten by build.rs.
Browse files Browse the repository at this point in the history
  • Loading branch information
njbirth committed Mar 5, 2021
1 parent 3214d41 commit c24a8b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
- ~either globally... (`rustup default nightly`)~
- ~...or locally in the project folder (`rustup override set nightly`)~
- MySQL/MariaDB (on Ubuntu 'mysql-server'/'mariadb-server')
- You need a database and a user who can read and write it
- OpenSSL
- If you run into problems, try to install `pkg-config` and `libssl-dev` (Ubuntu) and set the environment variable`OPENSSL_DIR`. If you are lucky, this solves your problem.

## Installation and Execution

- Clone this repository.
- `.env-default` provides default values for configuration variables. If you want to change them, you can just copy the file to `.env`. Variables set in `.env` will override the values from `.env-default`. You should at least change the database credentials.
- You need to create a file `hidden_users.txt`, otherwise the compilation will fail.
- Execute `cargo run` or `cargo run --release` (for production).
- Alternative option: Use a systemd-service (see below).
- The server runs on localhost:4224 (dev) or 0.0.0.0:4224 (production).
Expand Down
2 changes: 0 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,4 @@ fn main() {
let git_hash = String::from_utf8(output.stdout).unwrap();

println!("cargo:rustc-env=GIT_HASH={}", git_hash);

std::fs::File::create("hidden_users.txt").unwrap();
}

0 comments on commit c24a8b4

Please sign in to comment.