User login

Drush

Drupal in a virtual machine cheat sheet

This cheatsheet presumes you're already set up with VirtualBox and Vagrant, configured for Drupal. (Agaric has our own base box to have a head start on setting up for this purpose, but some of the magic is in the Vagrantfile stored with our projects.)

In a terminal, go to the directory holding your Vagrantfile and your project code. Then the fun begins.

vagrant up

to start the virtual machine.

Update only Drupal core with Drush

drush up drupal

Download and install Drupal in one step

Drubuntu has a 'site add' functionality, but aside from being limited to Drubuntu it does as a multisite (no thanks) with the site's settings.php and files weirdly symlinked to a directory sitting alongside the download itself. (Ah, i just realize that it probably adds all sites to this one multisite.)

very wrong attempts to load a specified Drush alias configuration file

in

It's funny if you weren't there. Trying to call and use a Drush aliases file. First of all, the flag is --alias-path (this is missing from drush topic global-core-options but mentioned in drush/examples/example.alias.drushrc.php) and secondly it takes the directory not the file name. See Settings for sets of sites: Putting Drush configuration into your project repository.

Settings for sets of sites: Putting Drush configuration into your project repository

Inherit local-only options with 'parent'

Parent is not working across files. Filed support request: http://drupal.org/node/1262230

In an aliases file that lives with your project, so for our SDL project, sdl.aliases.drushrc.php, put in all settings that are true no matter who is using Drush and from where. This is the settings for an externally hosted development collaboration site.

Drush and specifying source dump and target dump options

Using temporary files to store and transfer sql-dump. It is recommended that you specify --source-dump and --target-dump options on the command line, or set '%dump' or '%dump-dir' in the path-aliases section of your site alias records. This facilitates fast file transfer via rsync.

What exactly does that mean? Is some random location i make up really better than the temporary directory? Or should i be giving it some specific directory, on different serves or something? Guidance please.

Failure

in drushrc.php

Tell Drush to Check your Git Repository for Configuration

http://grayside.org/node/93

To consider for Agaric. We don't have one big project so i'm not sure how useful per-project configuration will be...
{"cc_re__cc_re__cc_by_3_0": ["0<br />\nU.S.A<br />\n+1-774-286-1770<br />\n<a href=\"http://agaric.com/contact\">Email</a></p>\n  </div>\n\n  \n</div></div> <!-- /block-inner, /block -->\n\t\t\t\t   </div> <!-- /#footer_middle -->\n\t\t\t\t\n\t  \n\t\t\t</div>\n\t\t\t<div class=\"left right\">\n\t\t\t\t\t\t\t\t   <div id=\"footer_right\" class=\"region region-footer_right\">\n\t\t\t\t    <div id=\"block-block-3\" class=\"block block-block region-odd odd region-count-1 count-7\"><div class=\"block-inner\">\n\n      <h2 class=\"title\">Copyright</h2>\n  \n  <div class=\"content\">\n    <p><a rel=\"license\" href=\"http://creativecommons.org/licenses/by/3.0/\"><img alt=\"Creative Commons License\" src=\"http://i.creativecommons.org/l/by/3.0/88x31.png\" /></a> Except where otherwise noted, content on this site is licensed under a <a  rel=\"license\" href=\"http://creativecommons.org/licenses/by/3.0/\">Creative Commons Attribution 3.0 Unported License</a>.</p>\n  </div>\n\n  \n</div></div> <!-- /block-inner, /block -->\n\t\t\t\t   </div> <!-- /#footer_right -->\n\t\t\t\t\t\t\t</div>\n\t\t    </div> <!-- /#footercolumns -->\n\n\t\t<div class=\"clear-block\"></div>\n\n\t\n\t\t</div> <!-- /.cont", "\t\t\t\t\t\t   <div id=\"footer_right\" class=\"region region-footer_right\">\n\t\t\t\t    <div id=\"block-block-3\" class=\"block block-block region-odd odd region-count-1 count-7\"><div class=\"block-inner\">\n\n      <h2 class=\"title\">Copyright</h2>\n  \n  <div class=\"content\">\n    <p><a rel=\"license\" href=\"http://creativecommons.org/licenses/by/3.0/\"><img alt=\"Creative Commons License\" src=\"http://i.creativecommons.org/l/by/3.0/88x31.png\" /></a> Except where otherwise noted, content on this site is licensed under a <a  rel=\"license\" href=\"http://creativecommons.org/licenses/by/3.0/\">Creative Commons Attribution 3.0 Unported License</a>.</p>\n  </div>\n\n  \n</div></div> <!-- /block-inner, /block -->\n\t\t\t\t   </div> <!-- /#footer_right -->\n\t\t\t\t\t\t\t</div>\n\t\t    </div> <!-- /#footercolumns -->\n\n\t\t<div class=\"clear-block\"></div>\n\n\t\n\t\t</div> <!-- /.content clearfix -->\n\n      </div></div> <!-- /#footer-inner, /#footer -->\n\n  \n  <script type=\"text/javascript\" src=\"/sites/default/files/js/js_395232cefecec8aaab5511b6cb60f003.js\"></script>\n<script type=\"text/javascript\">\n<!--//--><![CDATA["], "copyright__copyright__copyright": ["ias records. This facilitates fast file transfer via rsync.\n\nWhat exactly does that mean? Is some random location i make up really better than the temporary directory? Or should i be giving it some specific directory, on different serves or something? Guidance please.\n\nFailure\n\nin drushrc.php\n\nTell Drush to Check your Git Repository for Configuration\n\nhttp://grayside.org/node/93\n\nTo consider for Agaric. We don't have one big project so i'm not sure how useful per-project configuration will be..."]}