From c5929c325d4dbdbdf2e7fb329e01a28e7ee1985c Mon Sep 17 00:00:00 2001 From: f Date: Fri, 13 Sep 2019 14:31:04 -0300 Subject: [PATCH] inicializar la base de datos idempotentemente --- Procfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Procfile b/Procfile index 61fa54ae..50be8a61 100644 --- a/Procfile +++ b/Procfile @@ -1,3 +1,3 @@ -migrate: bundle exec rake db:setup db:migrate db:seed +migrate: if test -f data/production.sqlite3; then bundle exec rake db:migrate db:seed ; else bundle exec rake db:setup ; fi sutty: bundle exec puma -d config.ru sidekiq: bundle exec sidekiq -t 1