First of all, I want to thank these people for the contributions:
If you upgrade Inploy today and do nothing else, the two features you will automatically earn out of the box are:
control of submodules
This functionality initializes/updates the Git submodules on each deploy, so that the code is always updated without the possibility of forgetting.
For those who use Hoptoad, Inploy will notify the tool on every code update, sending the environment and the revision code.
Besides the new features mentioned, Inploy now also has the following optional settings, which can be specified in the deploy.rb file:
Case you want to run the commands in the server as sudo.
server (Unicorn support)
Inploy works with production environment as default, but now we can use another one, like staging.
Such times we have a branch with the configurations of our deploy and we want to use it, we can do it with the branch option.
If you want to connect to the server using some ssh parameter, we can specified it in this option.
Here’s an example of how to use the options mentioned:
if ENV['environment'].eql? 'staging' deploy.ssh_opts = '-A' deploy.server = :unicorn deploy.environment = :staging else deploy.branch = :deploy deploy.sudo = true end