ucsdlib / hifive

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

Support dynamic database commands in docker entrypoint #326

Closed mcritchlow closed 5 years ago

mcritchlow commented 5 years ago

Descriptive summary

Currently we have the entrypoint script run:

bundle exec rake db:create db:schema:load

Which is ok, but it assumes it's starting from scratch each time. This isn't viable for a production usage of this Docker setup. So, we could make an environment variable out of this DB_COMMAND which is what we did for Starlight.

This would allow passing db:migrate instead

Rationale