README.md 748 Bytes
Newer Older
Malte Schmitz's avatar
Malte Schmitz committed
1
# Sediment
Malte Schmitz's avatar
Init  
Malte Schmitz committed
2

Malte Schmitz's avatar
Malte Schmitz committed
3
4
5
6
7
8
9
10
11
12
## Secrets

This repository does not contain any compressed secrets. Before starting the rails server you must generate new secrets:

```
rails credentials:edit
```

## Environment Variables

Malte Schmitz's avatar
Malte Schmitz committed
13
In production the mailer is configured in `config/environment/production.rb`. The following options must be set as environment variables:
Malte Schmitz's avatar
Malte Schmitz committed
14
15

```
Malte Schmitz's avatar
Malte Schmitz committed
16
17
18
MAILER_PASSWORD="CHANGEME"
MAILER_HOST="localhost"
MAILER_PORT="3000"
Malte Schmitz's avatar
Malte Schmitz committed
19
20
```

Malte Schmitz's avatar
Malte Schmitz committed
21
During development the mailer is configured in `config/environment/development.rb` to send mails to file. No environment variables are read.
Malte Schmitz's avatar
Malte Schmitz committed
22

Malte Schmitz's avatar
Malte Schmitz committed
23
24
25
26
27
28
29
30
31
## Creating The First Admin User

Register as a normal user and open a Rails console with `rails console`:

```
u = User.find_by_email("your@email.address")
u.admin = true
u.save!
```