Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Add info about how to execute the iex command
  • Loading branch information
keianhzo authored Apr 11, 2024
1 parent cc3d2c0 commit 0338888
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,26 @@ Navigate to that url in your browser to finish signing in.

### 6. Creating an Admin User

After you've started Reticulum for the first time you'll likely want to create an admin user. Assuming you want to make the first account the admin, this can be done in the iex console using the following code:

After you've started Reticulum for the first time you'll likely want to create an admin user. Assuming you want to make the first account the admin, this can be done in the iex console:
1) Open the iex console. From the reticulum folder run:
```
iex -S mix
```
2) Then run the following code:
```
Ret.Account |> Ret.Repo.all() |> Enum.at(0) |> Ecto.Changeset.change(is_admin: true) |> Ret.Repo.update!()
```

Make sure to run the Maybe try iex -S mix where the reticulum mix.exs file is.

### 7. Enabling Room Features

Rooms are created with restricted permissions by default, which means you can't spawn media objects. You can change this setting in the admin panel, or run the following code in the iex console:

1) Open the iex console. From the reticulum folder run:
```
iex -S mix
```
2) Then run the following code:
```
Ret.AppConfig.set_config_value("features|permissive_rooms", true)
```
Expand Down

0 comments on commit 0338888

Please sign in to comment.