ยปVagrant Push
As of version 1.7, Vagrant is capable of deploying or "pushing" application code in the same directory as your Vagrantfile to a remote such as an FTP server.
Pushes are defined in an application's Vagrantfile
and are invoked using the
vagrant push
subcommand. Much like other components of Vagrant, each Vagrant
Push plugin has its own configuration options. Please consult the documentation
for your Vagrant Push plugin for more information. Here is an example Vagrant
Push configuration section in a Vagrantfile
:
When the application is ready to be deployed to the FTP server, just run a single command:
Much like Vagrant Providers, Vagrant Push also supports multiple backend declarations. Consider the common scenario of a staging and QA environment:
In this scenario, the user must pass the name of the Vagrant Push to the subcommand:
Vagrant Push is the easiest way to deploy your application. You can read more in the documentation links on the sidebar.