mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2026-02-15 17:16:57 +00:00
docs openbsd: No need to switch users when creating DB
This commit is contained in:
parent
a323701c33
commit
047916445b
1 changed files with 4 additions and 5 deletions
|
|
@ -107,14 +107,12 @@ Note: Answer yes when asked to install Hex and rebar3. This step might take some
|
||||||
Create the Pleroma database:
|
Create the Pleroma database:
|
||||||
|
|
||||||
```
|
```
|
||||||
# psql -U postgres -f /home/_pleroma/pleroma/config/setup_db.psql
|
$ psql -U postgres -f config/setup_db.psql
|
||||||
```
|
```
|
||||||
|
|
||||||
Switch back to the \_pleroma user and apply database migrations:
|
Apply database migrations:
|
||||||
|
|
||||||
```
|
```
|
||||||
# su -l _pleroma
|
|
||||||
$ cd pleroma
|
|
||||||
$ MIX_ENV=prod mix ecto.migrate
|
$ MIX_ENV=prod mix ecto.migrate
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -343,9 +341,10 @@ Enable and start the pleroma service:
|
||||||
|
|
||||||
### Create administrative user
|
### Create administrative user
|
||||||
|
|
||||||
If your instance is up and running, you can create your first user with administrative rights with the following command as the \_pleroma user:
|
If your instance is up and running, you can create your first user with administrative rights with the following commands as the \_pleroma user:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
$ cd pleroma
|
||||||
$ MIX_ENV=prod mix pleroma.user new <username> <your@emailaddress> --admin
|
$ MIX_ENV=prod mix pleroma.user new <username> <your@emailaddress> --admin
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue