https://reisub.nsupdate.info/git
/
relay.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a87c6c8
)
Persist db
author
kjwon15
<kjwonmail@gmail.com>
Thu, 27 Dec 2018 09:48:40 +0000
(18:48 +0900)
committer
kjwon15
<kjwonmail@gmail.com>
Thu, 27 Dec 2018 10:08:38 +0000
(19:08 +0900)
app.json
patch
|
blob
|
history
bin/pre-deploy
patch
|
blob
|
history
diff --git
a/app.json
b/app.json
index
c9a9b8a
..
087b641
100644
(file)
--- a/
app.json
+++ b/
app.json
@@
-1,4
+1,13
@@
{
+ "dokku": {
+ "volumes": [
+ {
+ "host": "/var/lib/dokku/data/storage/$APP/files",
+ "app": "/app/files",
+ "phases": "deploy,run"
+ }
+ ]
+ },
"scripts": {
"dokku": {
"predeploy": "./bin/pre-deploy"
diff --git
a/bin/pre-deploy
b/bin/pre-deploy
index
af4c04c
..
9ac6ba8
100755
(executable)
--- a/
bin/pre-deploy
+++ b/
bin/pre-deploy
@@
-3,7
+3,7
@@
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
+db:
files/
relay.jsonld
# Listener
listen: 0.0.0.0