Commit 329597b7 authored by Mayel's avatar Mayel

doc & example additions

parent 896d4409
Pipeline #35070799 failed with stages
in 3 minutes and 20 seconds
...@@ -97,6 +97,11 @@ You can make users moderators. They will then be able to delete any post. ...@@ -97,6 +97,11 @@ You can make users moderators. They will then be able to delete any post.
Run `mix set_moderator username [true|false]` to make user a moderator or not. Run `mix set_moderator username [true|false]` to make user a moderator or not.
### Monitoring
You can use `iex -S mix run` to run the app in interactive mode and then enter `:observer.start()` to launch [Erlang's observer](http://erlang.org/doc/apps/observer/observer_ug.html), which among other things will show you an applications tree:
![Observer example](installation/threads_tree.png)
## Troubleshooting ## Troubleshooting
### No incoming federation ### No incoming federation
......
...@@ -5,8 +5,8 @@ defmodule Mix.Tasks.GenerateConfig do ...@@ -5,8 +5,8 @@ defmodule Mix.Tasks.GenerateConfig do
def run(_) do def run(_) do
IO.puts("Answer a few questions to generate a new config\n") IO.puts("Answer a few questions to generate a new config\n")
IO.puts("--- THIS WILL OVERWRITE YOUR config/generated_config.exs! ---\n") IO.puts("--- THIS WILL OVERWRITE YOUR config/generated_config.exs! ---\n")
domain = IO.gets("What is your domain name? (e.g. pleroma.soykaf.com): ") |> String.trim() domain = IO.gets("What is your domain name? (e.g. pub.libre.coop): ") |> String.trim()
name = IO.gets("What is the name of your instance? (e.g. Pleroma/Soykaf): ") |> String.trim() name = IO.gets("What is the name of your instance? (e.g. Libre Coop): ") |> String.trim()
email = IO.gets("What's your admin email address: ") |> String.trim() email = IO.gets("What's your admin email address: ") |> String.trim()
secret = :crypto.strong_rand_bytes(64) |> Base.encode64() |> binary_part(0, 64) secret = :crypto.strong_rand_bytes(64) |> Base.encode64() |> binary_part(0, 64)
......
...@@ -19,9 +19,9 @@ config :pleroma, :media_proxy, ...@@ -19,9 +19,9 @@ config :pleroma, :media_proxy,
# Configure your database # Configure your database
config :pleroma, Pleroma.Repo, config :pleroma, Pleroma.Repo,
adapter: Ecto.Adapters.Postgres, adapter: Ecto.Adapters.Postgres,
username: "pleroma", username: "commonspub_db",
password: "<%= dbpass %>", password: "<%= dbpass %>",
database: "pleroma_dev", database: "commonspub_db",
hostname: "localhost", hostname: "localhost",
pool_size: 10 pool_size: 10
......
CREATE USER pleroma WITH ENCRYPTED PASSWORD '<%= dbpass %>' CREATEDB; CREATE USER commonspub_db WITH ENCRYPTED PASSWORD '<%= dbpass %>' CREATEDB;
-- in case someone runs this second time accidentally -- in case someone runs this second time accidentally
ALTER USER pleroma WITH ENCRYPTED PASSWORD '<%= dbpass %>' CREATEDB; ALTER USER commonspub_db WITH ENCRYPTED PASSWORD '<%= dbpass %>' CREATEDB;
CREATE DATABASE pleroma_dev; CREATE DATABASE commonspub_db;
ALTER DATABASE pleroma_dev OWNER TO pleroma; ALTER DATABASE commonspub_db OWNER TO commonspub_db;
\c pleroma_dev; \c commonspub_db;
--Extensions made by ecto.migrate that need superuser access --Extensions made by ecto.migrate that need superuser access
CREATE EXTENSION IF NOT EXISTS citext; CREATE EXTENSION IF NOT EXISTS citext;
CREATE EXTENSION IF NOT EXISTS pg_trgm; CREATE EXTENSION IF NOT EXISTS pg_trgm;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment