From 58edaadac45dbd2912487b04041509e8321f938d Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sun, 8 Nov 2020 16:44:43 +0100 Subject: [PATCH] Add migration --- entrypoint.sh.tmpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/entrypoint.sh.tmpl b/entrypoint.sh.tmpl index 30485f9..3a80df0 100644 --- a/entrypoint.sh.tmpl +++ b/entrypoint.sh.tmpl @@ -38,6 +38,10 @@ db_setup() { bundle exec rake db:setup } +db_migrate() { + bundle exec rake db:migrate +} + run_web(){ ./proc-start web } @@ -45,4 +49,5 @@ run_web(){ re_use load_vars db_setup +db_migrate run_web