The scripts we use assume a directory layout like this
and assume there is a drush alias set up for the site called @[domain name] .
* it does not work with a domain name here!
How to get yourself set up to use the scripts
cd ~ git clone git@github.com:cul-it/drupal-site-moves.git
How to change the modules and themes
How to rebuild your site
Note: the alias argument @[your site name] is no longer necessary for dr-make.sh |
How to update your theme/module code on the site
How to work with your custom themes/modules
Moving sites between machines
PUSHKEY drush pushkey user@host.domain.com Creates an ssh public/private key pair in $HOME/.ssh, if one does not already exist, and then pushes the public key to the specified remote account. The password for the destination account must be entered once to push the key over; after the key has been stored on the remote system, subsequent ssh and remote drush commands may be executed using the public/private key pair for authentication. IN DRUSH EXTRAS because is is Linux / openssl-specific.
drush dl drush_extras
use it
once the ssh keys are set up, you can avoid lots of extra
Enter passphrase for key '/home/user/.ssh/id_rsa'prompts by using this command:
ssh-addSee this: http://blog.joncairns.com/2013/12/understanding-ssh-agent-and-ssh-add/
How to get the latest versions of the scripts
cd ~
git clone git@github.com:cul-it/drupal-site-moves.git
cd ~/drupal-site-moves
git pull
How to set permissions on a site
~/drupal-site-moves/set_permissions.sh <site name>
How to move from production to test
~/drupal-site-moves/pull_site_from_production.sh <production site name> <test site name>
How to move from test to production
~/drupal-site-moves/pull_site_from_test.sh <test site name> <production site name>
you are prompted for your password