<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="https://build2be.com"  xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>build2be/com/e - drush_mm</title>
 <link>https://build2be.com/category/drushmm</link>
 <description></description>
 <language>en</language>
<item>
 <title>My development environment so far</title>
 <link>https://build2be.com/content/my-development-environment-so-far</link>
 <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;h3&gt;Intro&lt;/h3&gt;

These are my notes when doing my first (drupal) presentation @ FrOSCon 2008 Drupal Room

This method uses the concepts
&lt;ol&gt;
&lt;li&gt;All drupal sites in directory www&lt;/li&gt;
&lt;li&gt;All site-config in a separate directory&lt;/li&gt;
&lt;li&gt;All site-data in a separate directory&lt;/li&gt;
&lt;/ol&gt;

This way an upgrade to another drupal version runs smoothly. Hmmm this was about developer environment.

&lt;h3&gt;Add new local domain&lt;/h3&gt;

Why do I need this? To make sites like http://nf.test http://nf.dev  or http://froscon.demo

&lt;pre&gt;&lt;code&gt;sudo su -
echo 127.0.0.254&amp;nbsp; froscon.demo &amp;gt;&amp;gt; /etc/hosts
exit&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;add apache site&lt;/h3&gt;
We need a new website with a configured drupal install somewhere. Key words are VirtualRoot and DocumentRoot.

This is my template &lt;a href=&quot;/sites/build2be.com/files/TEMPLATE.txt&quot;&gt;TEMPLATE&lt;/a&gt;
&lt;pre&gt;&lt;code&gt;sudo su -
cd /etc/apache2/sites-available
cp TEMPLATE.tmp froscon.demo
vi froscon.demo
# :%s/HOSTNAME/froscon.demo/g
# DON&amp;#039;T FORGET TO CHANGE DocumentRoot and log file locations
# :wq
exit&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;Let apache know of the new site&lt;/h4&gt;

&lt;pre&gt;&lt;code&gt;a2ensite froscon.demo
/etc/init.d/apache2 reload
exit&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;Installing drupal&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;cd /home/clemens/www&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;Get and unpack your drupal version&lt;/h3&gt;

&lt;pre&gt;&lt;code&gt;cd /home/clemens/usr/lib/drupal/core
wget http://ftp.drupal.org/files/projects/drupal-6.4.tar.gz
tar xvf drupal-6.4.tar.gz&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;create site&lt;/h3&gt;

This is my &lt;a href=&quot;/sites/build2be.com/files/new-site.php_.txt&quot;&gt;new-site.php&lt;/a&gt; script.

&lt;pre&gt;&lt;code&gt;cd /home/clemens/www
vi new-site.php
# change site name
# change drupal version

php new-site.php | bash&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;install site&lt;/h3&gt;

&lt;pre&gt;&lt;code&gt;cd ~/www/sites-data/froscon.demo/
cp default.settings.php settings.php 
chmod 777 settings.php&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;Create the database&lt;/h3&gt;

This is my &lt;a href=&quot;/sites/build2be.com/files/new-db.php_.txt&quot;&gt;new-db.php&lt;/a&gt; script.

&lt;pre&gt;&lt;code&gt;vi new-db.php
# edit hostname
# :wq
php new-db.php | mysql -u root&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;Fire up drupal&lt;/h3&gt;

http://froscon.demo

Do as drupal tells you
&lt;pre&gt;&lt;code&gt;chmod 777 settings.php&lt;/code&gt;&lt;/pre&gt;
and then reset it again
&lt;pre&gt;&lt;code&gt;chmod 755 settings.php&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;install drush&lt;/h3&gt;

&lt;pre&gt;&lt;code&gt;cd /home/clemens/www/site-config/froscon.demo/modules
wget http://ftp.drupal.org/files/projects/drush-6.x-1.x-dev.tar.gz
wget http://ftp.drupal.org/files/projects/drush_mm-6.x-1.x-dev.tar.gz
tar xzf drush_*&lt;/code&gt;&lt;/pre&gt;

http://froscon.demo/admin/build/modules

&lt;h3&gt;Running wild on the command line&lt;/h3&gt;

Install &lt;a href=&quot;/sites/build2be.com/files/drush.txt&quot;&gt;my drush script runner&lt;/a&gt; to follow along with the commands.
&lt;pre&gt;&lt;code&gt;cd ~/www
./drush froscon.demo help

./drush froscon.demo pm install simpletest cck node_factory

./drush froscon.demo mm dot | neato -o ~/froscon/2008/frosdem.png -T png

./drush froscon.demo -s -v mm enable drush_simpletest

./drush froscon.demo mm enable drush_simpletest nodereference&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;Running simpletest&lt;/h3&gt;

http://froscon.demo/admin/build/simpletest

&lt;pre&gt;&lt;code&gt;vi ~/www/sites-config/froscon.demo/settings.php &lt;/code&gt;&lt;/pre&gt;

http://froscon.demo/admin/build/simpletest

&lt;h3&gt;uninstall modules&lt;/h3&gt;

&lt;pre&gt;&lt;code&gt;./drush froscon.demo -v -s mm uninstall content

./drush froscon.demo mm uninstall content
rm -r sites-config/froscon.demo/modules/cck/

./drush froscon.demo mm dot | neato -o ~/froscon/2008/frosdem.png -T png&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;eclipse&lt;/h3&gt;

- a test from node_factory
- mylyn task tracking
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-upload field-type-file field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;div class=&quot;table-responsive&quot;&gt;
&lt;table class=&quot;table table-hover table-striped sticky-enabled&quot;&gt;
 &lt;thead&gt;&lt;tr&gt;&lt;th&gt;Attachment&lt;/th&gt;&lt;th&gt;Size&lt;/th&gt; &lt;/tr&gt;&lt;/thead&gt;
&lt;tbody&gt;
 &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;file&quot;&gt;&lt;img class=&quot;file-icon&quot; alt=&quot;Plain text icon&quot; title=&quot;text/plain&quot; src=&quot;/modules/file/icons/text-plain.png&quot; /&gt; &lt;a href=&quot;https://build2be.com/sites/build2be.com/files/TEMPLATE.txt&quot; type=&quot;text/plain; length=434&quot; title=&quot;TEMPLATE.txt&quot;&gt;TEMPLATE.txt&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;434 bytes&lt;/td&gt; &lt;/tr&gt;
 &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;file&quot;&gt;&lt;img class=&quot;file-icon&quot; alt=&quot;Plain text icon&quot; title=&quot;text/plain&quot; src=&quot;/modules/file/icons/text-plain.png&quot; /&gt; &lt;a href=&quot;https://build2be.com/sites/build2be.com/files/new-site.php_.txt&quot; type=&quot;text/plain; length=2266&quot; title=&quot;new-site.php_.txt&quot;&gt;new-site.php_.txt&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;2.21 KB&lt;/td&gt; &lt;/tr&gt;
 &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;file&quot;&gt;&lt;img class=&quot;file-icon&quot; alt=&quot;Plain text icon&quot; title=&quot;text/plain&quot; src=&quot;/modules/file/icons/text-plain.png&quot; /&gt; &lt;a href=&quot;https://build2be.com/sites/build2be.com/files/new-db.php_.txt&quot; type=&quot;text/plain; length=451&quot; title=&quot;new-db.php_.txt&quot;&gt;new-db.php_.txt&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;451 bytes&lt;/td&gt; &lt;/tr&gt;
 &lt;tr&gt;&lt;td&gt;&lt;span class=&quot;file&quot;&gt;&lt;img class=&quot;file-icon&quot; alt=&quot;Plain text icon&quot; title=&quot;text/plain&quot; src=&quot;/modules/file/icons/text-plain.png&quot; /&gt; &lt;a href=&quot;https://build2be.com/sites/build2be.com/files/drush.txt&quot; type=&quot;text/plain; length=581&quot; title=&quot;drush.txt&quot;&gt;drush.txt&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&gt;581 bytes&lt;/td&gt; &lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-taxonomy-vocabulary-4 field-type-taxonomy-term-reference field-label-above&quot;&gt;&lt;div class=&quot;field-label&quot;&gt;free form:&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/category/drushmm&quot;&gt;drush_mm&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/category/drush&quot;&gt;drush&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/category/development&quot;&gt;development&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item odd&quot;&gt;&lt;a href=&quot;/category/planet-drupal&quot;&gt;planet drupal&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/category/simpletest&quot;&gt;simpletest&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Fri, 22 Aug 2008 11:40:43 +0000</pubDate>
 <dc:creator>clemens</dc:creator>
 <guid isPermaLink="false">57 at https://build2be.com</guid>
 <comments>https://build2be.com/content/my-development-environment-so-far#comments</comments>
</item>
<item>
 <title>module dependency management</title>
 <link>https://build2be.com/content/module-dependency-management</link>
 <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;I don&#039;t like the idea that dependencies are not handled in a unified way. By that I mean that both module.inc and update.php code is written to handle module status. There should be a central library handling their dependencies. When we handle this in a unified way installing a big project like ubercart is easy.&lt;/p&gt;
&lt;p&gt;When installing/enabling a module it is important to know what this module is dependent of. Ie uc_cart is dependent of uc_order. See ie &lt;a href=&quot;http://build2be.com/sites/build2be.com/files/ubercart.neato.png&quot;&gt;http://build2be.com/sites/build2be.com/files/ubercart.neato.png&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Mon, 03 Mar 2008 08:55:21 +0000</pubDate>
 <dc:creator>clemens</dc:creator>
 <guid isPermaLink="false">17 at https://build2be.com</guid>
 <comments>https://build2be.com/content/module-dependency-management#comments</comments>
</item>
<item>
 <title>Module management in Drupal</title>
 <link>https://build2be.com/content/module-management-drupal</link>
 <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;The title of this page should be project management because Drupal uses projects for delivering modules.

A companion video shows the Drupal 5.x situation. Using drush, my drush_mm patch and update status to manage and install modules command line. This video shows better dependency checking than currently available in D7. As I hope is clear I want to contribute to implement this into D7.

&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Mon, 03 Mar 2008 08:19:10 +0000</pubDate>
 <dc:creator>clemens</dc:creator>
 <guid isPermaLink="false">16 at https://build2be.com</guid>
 <comments>https://build2be.com/content/module-management-drupal#comments</comments>
</item>
<item>
 <title>Configuring ubercart</title>
 <link>https://build2be.com/content/configuring-ubercart</link>
 <description>&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;So you want to have a shopping cart. With drush_mm it&#039;s a snap.&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;drush --verbose mm enable uc_cart&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;
Using verbose output this shows&lt;br /&gt;&lt;code&gt;&lt;br /&gt;
Given module names: &#039;uc_cart&#039;&lt;br /&gt;
The following modules will be enabled: &#039;tapir, uc_store, token, workflow_ng, ubrowser, uc_order, uc_product, uc_cart&#039;&lt;br /&gt;
Installing modules&lt;br /&gt;
Enabling (and mayby installing) module: tapir&lt;br /&gt;
Enabling (and mayby installing) module: uc_store&lt;br /&gt;
Enabling (and mayby installing) module: token&lt;br /&gt;
Enabling (and mayby installing) module: workflow_ng&lt;br /&gt;
Enabling (and mayby installing) module: ubrowser&lt;/code&gt;&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Thu, 28 Feb 2008 13:01:56 +0000</pubDate>
 <dc:creator>clemens</dc:creator>
 <guid isPermaLink="false">15 at https://build2be.com</guid>
 <comments>https://build2be.com/content/configuring-ubercart#comments</comments>
</item>
<item>
 <title>Installing ubercart through drush pm and mm</title>
 <link>https://build2be.com/content/installing-ubercart-through-drush-pm-and-mm</link>
 <description>&lt;div class=&quot;field field-name-field-images field-type-image field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;a href=&quot;/content/installing-ubercart-through-drush-pm-and-mm&quot;&gt;&lt;img class=&quot;img-responsive&quot; src=&quot;https://build2be.com/sites/build2be.com/files/styles/medium/public/ubercart.neato.png?itok=xHn2VP2h&quot; width=&quot;220&quot; height=&quot;166&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;field field-name-body field-type-text-with-summary field-label-hidden&quot;&gt;&lt;div class=&quot;field-items&quot;&gt;&lt;div class=&quot;field-item even&quot;&gt;&lt;p&gt;It&#039;s quite neat using drush to install ubercart. Here is what I did.&lt;/p&gt;
&lt;p&gt;Preparation&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;Install drupal 5.x&lt;/li&gt;
&lt;li&gt;Install your site/database&lt;/li&gt;
&lt;li&gt;download and install &lt;a href=&quot;http://drupal.org/project/drush&quot;&gt;drush&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;download and install &lt;a href=&quot;http://drupal.org/project/update_status&quot;&gt;update_status&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;if you want to follow along &lt;a href=&quot;http://drupal.org/node/220945&quot;&gt;install this patch for the module manager&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Enable the above modules. For a list see below.&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;Installing&lt;/p&gt;
&lt;ol&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Thu, 28 Feb 2008 11:14:37 +0000</pubDate>
 <dc:creator>clemens</dc:creator>
 <guid isPermaLink="false">14 at https://build2be.com</guid>
 <comments>https://build2be.com/content/installing-ubercart-through-drush-pm-and-mm#comments</comments>
</item>
</channel>
</rss>
