CirrusGrid can perform post deployment application configuration via rake. This is usually needed to finalize configuration of complex applications, to run additional applications or specific steps for application configuration like db:migrate.
To do this we’ve introduced a new file called rake_deploy. It is located in the application root and contains a list of the commands that have to be passed to rake. Each command has to be located in a separate line. Commands are executed successively.
CirrusGrid executes commands from rake_deploy with each restart of the apache/nginx service and deletes them right after successful execution. As a result, if you need to bypass different commands to rake on each deploy you need to create a rake_deploy file each time and put the correct commands there.
CirrusGrid puts the output of each rake_deploy into a corresponding log file which is available via the Log view in the CirrusGrid dashboard.
Syntaxis of the rake_deploy file:
And CirrusGrid will execute the following scripts:
For example, rake_deploy looks like the following in the Redmine tutorial:
Note: To freeze gems you need to add the gems:unpack command to rake_deploy.
Powered by BetterDocs
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.