0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2024-11-16 06:52:07 +01:00

Updated Building binary (markdown)

mqus 2020-01-02 20:51:28 +01:00
parent 668d1ad740
commit f52bd6e858

@ -1,3 +1,5 @@
If you don't want to build the binary yourself, you can look if bitwarden_rs was already [packaged for your linux distribution](https://github.com/dani-garcia/bitwarden_rs/wiki/Available-packages).
## Dependencies ## Dependencies
- `Rust nightly` (strongly recommended to use [rustup](https://rustup.rs/)) - `Rust nightly` (strongly recommended to use [rustup](https://rustup.rs/))
- `OpenSSL` (should be available in path, install through your system's package manager or use the [prebuilt binaries](https://wiki.openssl.org/index.php/Binaries)) - `OpenSSL` (should be available in path, install through your system's package manager or use the [prebuilt binaries](https://wiki.openssl.org/index.php/Binaries))
@ -21,6 +23,13 @@ cargo run --features mysql --release
# or just compile with mysql (binary located in target/release/bitwarden_rs) # or just compile with mysql (binary located in target/release/bitwarden_rs)
cargo build --features mysql --release cargo build --features mysql --release
``` ```
### PostgreSQL backend
```sh
# Compile with postgresql backend and run
cargo run --features postgresql --release
# or just compile with postgresql (binary located in target/release/bitwarden_rs)
cargo build --features postgresql --release
```
When run, the server is accessible in [http://localhost:8000](http://localhost:8000). When run, the server is accessible in [http://localhost:8000](http://localhost:8000).
@ -70,6 +79,10 @@ The available configuration options are documented in the default `.env` file, a
Note: the environment variables override the values set in the `.env` file. Note: the environment variables override the values set in the `.env` file.
## More information for deployment
- [Setting up a reverse proxy](https://github.com/dani-garcia/bitwarden_rs/wiki/Proxy-examples)
- [Setting up Autostart via systemd](https://github.com/dani-garcia/bitwarden_rs/wiki/Setup-as-a-systemd-service)
## How to recreate database schemas for the sqlite backend (for developers) ## How to recreate database schemas for the sqlite backend (for developers)
Install diesel-cli with cargo: Install diesel-cli with cargo:
```sh ```sh