aboutsummaryrefslogtreecommitdiff
path: root/DEPLOY.md
blob: d088a88f124533f010ca8faf7ae90530682e6421 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
> https://dokku.com/docs/getting-started/installation/

```
DOMAIN=domain.xyz
VERSION=v0.36.10

wget -NP . https://dokku.com/install/$VERSION/bootstrap.sh
sudo DOKKU_TAG=$VERSION bash bootstrap.sh

cat ~/.ssh/authorized_keys | sudo dokku ssh-keys:add admin
dokku domains:set-global $DOMAIN
```

> https://dokku.com/docs/deployment/application-deployment/

```
DOMAIN=domain.xyz
# monzieur/config/master.key
KEY=9u98qfu983qu3
EMAIL=test@test.com

# on the Dokku host
dokku apps:create monzieur

sudo dokku plugin:install https://github.com/dokku/dokku-postgres.git
dokku postgres:create monzieurdb
dokku postgres:link monzieurdb monzieur

sudo dokku plugin:install https://github.com/dokku/dokku-letsencrypt.git
dokku letsencrypt:set --global email $EMAIL

dokku domains:clear monzieur
dokku domains:set monzieur $DOMAIN
dokku letsencrypt:enable monzieur
dokku letsencrypt:cron-job --add

dokku config:set monzieur RAILS_MASTER_KEY=$KEY

rm $HOME/.bash_history
ln -s /dev/null $HOME/.bash_history

# from your local machine
git clone https://git.compromyse.xyz/monzieur.git
git remote add dokku dokku@$DOMAIN:monzieur
git fetch dokku
git push dokku main
```