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.
Updated by Dominic Cleal almost 10 years ago
- Related to Refactor #6016: Convert foreman sysvinit script to systemd unit added
Updated by Dominic Cleal over 7 years ago
- Related to Feature #19228: Upgrade process with multiple servers is extremely time consuming (many many db:seed, db:migrate apipie cache runs) added