Ruby Apps Specification > Post Deploy Configuration

Post Deploy Configuration

Apiqcloud 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.

Apiqcloud 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.

Apiqcloud puts the output of each rake_deploy into a corresponding log file which is available via "Logs" view in the Apiqcloud Dashboard.

Syntaxis of rake_deploy file:

$COMMAND_NAME_1
$COMMAND_NAME_2
...
$COMMAND_NAME_N


And Apiqcloud will execute the following scripts:

rake $COMMAND_NAME_1
rake $COMMAND_NAME_2
...
rake $COMMAND_NAME_N


In case of Redmine rake_deploy looks like the following:

generate_secret_token
db:migrate
redmine:load_default_data


Note: To freeze gems you need to add this command to rake_deploygems:unpack

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Deploy Ruby Project via GIT SVN

Deploy Ruby Project via GIT/SVN You can host any public or your private Ruby project at...

Deploy Ruby Project Via URL Archive

With Apiqcloud you can easily upload and deploy any Ruby app via Archive of URL. The given below...

Ruby Apps Specification Dependancy

Dependency Management While hosting the Ruby application, Apiqcloud Cloud provides you with...

Ruby App Server Configuration

  Apiqcloud supports the following Ruby application servers:1.Apache2 + Passenger :The...

Redmine Ruby

How to Deploy Redmine in Apiqcloud Cloud Redmine is an open-source web-based system for...