Make Dokku-able

This commit is contained in:
kjwon15 2018-12-27 16:38:19 +09:00
parent 008f43db2c
commit 5b921c52f6
4 changed files with 31 additions and 0 deletions

3
.gitignore vendored
View file

@ -96,3 +96,6 @@ ENV/
viera.yaml viera.yaml
viera.jsonld viera.jsonld
relay.jsonld
relay.yaml

1
Procfile Normal file
View file

@ -0,0 +1 @@
web: python -m relay

7
app.json Normal file
View file

@ -0,0 +1,7 @@
{
"scripts": {
"dokku": {
"predeploy": "./bin/pre-deploy"
}
}
}

20
bin/pre-deploy Executable file
View file

@ -0,0 +1,20 @@
#!/bin/bash
cat << EOF > relay.yaml
# this is the path that the object graph will get dumped to (in JSON-LD format),
# you probably shouldn't change it, but you can if you want.
db: relay.jsonld
# Listener
listen: 0.0.0.0
port: ${PORT:-8080}
# Note
note: "Make a note about your instance here."
# this section is for ActivityPub
ap:
# this is used for generating activitypub messages, as well as instructions for
# linking AP identities. it should be an SSL-enabled domain reachable by https.
host: '$HOSTNAME'
EOF