Persist db
authorkjwon15 <kjwonmail@gmail.com>
Thu, 27 Dec 2018 09:48:40 +0000 (18:48 +0900)
committerkjwon15 <kjwonmail@gmail.com>
Thu, 27 Dec 2018 10:08:38 +0000 (19:08 +0900)
app.json
bin/pre-deploy

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"
index af4c04c..9ac6ba8 100755 (executable)
@@ -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