Feature #9864
openPost-installation utility to migrate/seed/restart
Description
Our core and plugin packages have a lot of postinstall duplication where the db:migrate, db:seed, apipie:cache rake tasks are called depending on what the plugin/package contains. At best this is code duplication, at worst it considerably slows down installation with many plugins.
It would be useful to have a lightweight way of running postinstall tasks that could be used in all packages, that can run migrations/seeds/apipie reindexing and a restart of the Foreman app (including under Passenger) only when required - using some kind of flag during package installation to indicate what the plugin requires.
Note that there are already two flags (db migrate and seed) within the DB settings, but they're unused outside of core and require starting the Rails environment to determine their value, which is slow.