ucsdlib / hifive

An application supporting an Employee Recognition program workflow
MIT License
0 stars 0 forks source link

Add DATABASE_COMMAND env var to entrypoint script #328

Closed mcritchlow closed 5 years ago

mcritchlow commented 5 years ago

Fixes #326

Local Checklist

What does this PR do?

This will be required for the Helm/K8s deployment so that we can ensure that deployments after the initial deploy always use db:migrate instead of the db:create db:schema:load.

Add some initial documentation around this to the README

Why are we doing this? Any context of related work?

References #326 #301

New ENV variables

DATABASE_COMMAND - Note this is not relevant for our existing deployments, since Capistrano is used to manage database rake tasks. So we don't need a PR to env-variables to add support for this.

@ucsdlib/developers - please review