Created
          March 26, 2015 23:13 
        
      - 
      
- 
        Save Nav-Appaiya/db53613d6cf310691cc5 to your computer and use it in GitHub Desktop. 
    Vagrant push command to push out code to a FTP server
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | The Vagrant Push FTP And SFTP strategy supports the following configuration options: | |
| host - The address of the remote (S)FTP server. If the (S)FTP server is running on a non-standard port, you can specify the port after the address (host:port). | |
| username - The username to use for authentication with the (S)FTP server. | |
| password - The password to use for authentication with the (S)FTP server. | |
| passive - Use passive FTP (default is true). | |
| secure - Use secure (SFTP) (default is false). | |
| destination - The root destination on the target system to sync the files (default is /). | |
| exclude - Add a file or file pattern to exclude from the upload, relative to the dir. This value may be specified multiple times and is additive. exclude take precedence over include values. | |
| include - Add a file or file pattern to include in the upload, relative to the dir. 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 a src folder or bin folder or some other folder you want to upload. | |
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant.configure("2") do |config| | |
| config.vm.box = "scotch/box" | |
| config.vm.network "private_network", ip: "192.168.33.10" | |
| config.vm.hostname = "scotchbox" | |
| config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"] | |
| config.push.define "ftp" do |push| | |
| push.host = "ftp.company.com" | |
| push.username = "username" | |
| push.password = "password" | |
| end | |
| end | |
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment