mirror of
https://github.com/LemmyNet/lemmy-docs.git
synced 2024-11-21 20:01:10 +00:00
add information on --locked flag (#117)
This commit is contained in:
parent
d7c0895873
commit
1e510bfca9
1 changed files with 4 additions and 1 deletions
|
@ -14,7 +14,10 @@ Compile and install Lemmy, setup database:
|
|||
```bash
|
||||
apt install pkg-config libssl-dev libpq-dev cargo postgresql
|
||||
# installs latest release, you can also specify one with --version
|
||||
cargo install lemmy_server --target-dir /usr/bin/
|
||||
# The --locked argument uses the exact versions of dependencies specified in
|
||||
# `cargo.lock`at release time. Running it without the flag will use newer minor
|
||||
# release versions of those dependencies, which are not always guaranteed to compile.
|
||||
cargo install lemmy_server --target-dir /usr/bin/ --locked
|
||||
# replace db-passwd with a randomly generated password
|
||||
sudo -iu postgres psql -c "CREATE USER lemmy WITH PASSWORD 'db-passwd';"
|
||||
sudo -iu postgres psql -c "CREATE DATABASE lemmy WITH OWNER lemmy;"
|
||||
|
|
Loading…
Reference in a new issue