Skip to content

Instantly share code, notes, and snippets.

@patcon
Last active December 12, 2015 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patcon/4728949 to your computer and use it in GitHub Desktop.
Save patcon/4728949 to your computer and use it in GitHub Desktop.
Explanation of how to deploy drupal sites to vagrant VM (Ariadne specifically)

Got drush-deploy working with Ariadne and skeletor like so:

  • Added gem to Gemfile and re-installed (and rehashed rbenv)

  • Added Capfile below to ariadne root

  • Skeletor was clones elsewhere

  • drush alias was placed in ~/.drush

  • These commands were run:

      cap TARGET=skeletor.vagrant deploy:setup
      REPO=~/repos/drupal-skeletor MAKEFILE=build-skeletor.make cap TARGET=skeletor.vagrant deploy
    
require 'drush_deploy'
module UseScpForDeployment
def self.included(base)
base.send(:alias_method, :old_upload, :upload)
base.send(:alias_method, :upload, :new_upload)
end
def new_upload(from, to, options = {})
old_upload(from, to, options.merge!(:via => :scp))
end
end
Capistrano::Configuration.send(:include, UseScpForDeployment)
<?php
$aliases['vagrant'] = array(
'uri' => 'default',
'root' => '/var/www/skeletor/current',
'remote-user' => 'vagrant',
'remote-host' => '33.33.33.10',
'remote-port' => '2222',
'databases' => array(
'default' => array(
'default' => array(
'database' => 'example',
'username' => 'root',
'password' => 'root',
),
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment