1.9 KiB
| page_title | sidebar_current | description |
|---|---|---|
| Vagrant Push - Atlas Strategy | push-atlas | Atlas is HashiCorp's commercial offering to bring your Vagrant development environments to production. The Vagrant Push Atlas strategy pushes your application's code to HashiCorp's Atlas service. |
Vagrant Push
Atlas Strategy
Atlas is HashiCorp's commercial offering to bring your Vagrant development environments to production. You can read more about HashiCorp's Atlas and all its features on the Atlas homepage. The Vagrant Push Atlas strategy pushes your application's code to HashiCorp's Atlas service.
The Vagrant Push Atlas strategy supports the following configuration options:
-
app- The name of the application in HashiCorp's Atlas. If the application does not exist, it will be created with user confirmation. -
exclude- Add a file or file pattern to exclude from the upload, relative to thedir. This value may be specified multiple times and is additive.excludetake precedence overincludevalues. -
include- Add a file or file pattern to include in the upload, relative to thedir. This value may be specified multiple times and is additive. -
dir- The base directory containing the files to upload. By default this is the same directory as the Vagrantfile, but you can specify this if you have asrcfolder orbinfolder or some other folder you want to upload. -
vcs- If set to true, Vagrant will automatically use VCS data to determine the files to upload. Uncommitted changes will not be deployed.
Usage
The Vagrant Push Atlas strategy is defined in the Vagrantfile using the
atlas key:
config.push.define "atlas" do |push|
push.app = "username/application"
end
And then push the application to Atlas:
$ vagrant push