From b97720cbd722c62b797f3fe571ec85fc080ee450 Mon Sep 17 00:00:00 2001 From: kjwon15 Date: Thu, 27 Dec 2018 18:48:40 +0900 Subject: [PATCH] Persist db --- app.json | 9 +++++++++ bin/pre-deploy | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app.json b/app.json index c9a9b8a..087b641 100644 --- 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 --- 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