<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://masspirates.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Crew_Development_Environment</id>
	<title>Crew Development Environment - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://masspirates.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Crew_Development_Environment"/>
	<link rel="alternate" type="text/html" href="https://masspirates.org/wiki/index.php?title=Crew_Development_Environment&amp;action=history"/>
	<updated>2026-05-09T16:32:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://masspirates.org/wiki/index.php?title=Crew_Development_Environment&amp;diff=2877&amp;oldid=prev</id>
		<title>Srevilak: intial revision</title>
		<link rel="alternate" type="text/html" href="https://masspirates.org/wiki/index.php?title=Crew_Development_Environment&amp;diff=2877&amp;oldid=prev"/>
		<updated>2015-04-05T17:36:20Z</updated>

		<summary type="html">&lt;p&gt;intial revision&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is a brief description of how to set up a development environment&lt;br /&gt;
for Mass Pirate's crew site.  Crew is based on Drupal an CiviCRM.&lt;br /&gt;
&lt;br /&gt;
First, you'll need a copy of drupal 7.  I'll assume you have it set up&lt;br /&gt;
in a directory structure like this:&lt;br /&gt;
&lt;br /&gt;
  0 sunny:www$ ls -ld drupal7&lt;br /&gt;
  0 lrwxrwxrwx 1 srevilak users 11 Apr  5 12:10 drupal7 -&amp;gt; drupal-7.36/&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;tt&amp;gt;drupal-7.36&amp;lt;/tt&amp;gt; is a directory containing a current drupal&lt;br /&gt;
release (available from drupal.org).&lt;br /&gt;
&lt;br /&gt;
Set up your site files:&lt;br /&gt;
&lt;br /&gt;
  mkdir -p masspirates.org/crew&lt;br /&gt;
  cd masspirates.org/crew&lt;br /&gt;
  ln -s ../../drupal7/* .&lt;br /&gt;
  rm sites&lt;br /&gt;
  git init&lt;br /&gt;
  git remote add origin ssh://masspiratesweb@rose.mayfirst.org/home/members/masspirateparty/sites/masspirates.org/users/masspiratesweb/masspirates.org/include/git/crew.git&lt;br /&gt;
  git remote update&lt;br /&gt;
  git checkout -b master origin/master&lt;br /&gt;
&lt;br /&gt;
You'll need to create a mysql (or mariadb) database and database user.&lt;br /&gt;
Something like this should work:&lt;br /&gt;
&lt;br /&gt;
  create database mapp_drupal default character set utf8;&lt;br /&gt;
  create user 'mapp_drupal'@'localhost' identified by 'some-password';&lt;br /&gt;
  grant all privileges on mapp_drupal.* to 'mapp_drupal'@'localhost';&lt;br /&gt;
&lt;br /&gt;
You'll also need a web server configuration.  Here's what I'm using&lt;br /&gt;
(for an apache2 web server).&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;Directory &amp;quot;/path/to/masspirates.org&amp;quot;&amp;gt;&lt;br /&gt;
    Options All&lt;br /&gt;
    AllowOverride all&lt;br /&gt;
    Require all granted&lt;br /&gt;
  &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;VirtualHost localhost:80&amp;gt;&lt;br /&gt;
    ServerName mapp.local&lt;br /&gt;
    DocumentRoot /path/to/masspirates.org&lt;br /&gt;
    RewriteEngine on&lt;br /&gt;
    &amp;lt;Directory /path/to/masspirates.org&amp;gt;&lt;br /&gt;
      AllowOverride all&lt;br /&gt;
    &amp;lt;/Directory&amp;gt;&lt;br /&gt;
  &amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Don't forget the /etc/hosts entry for `mapp.local'.&lt;br /&gt;
&lt;br /&gt;
At this point, http://mapp.local/crew should show you a drupal&lt;br /&gt;
installation screen.  Go through the installation process.&lt;br /&gt;
&lt;br /&gt;
Once you've gone through the installation process:&lt;br /&gt;
&lt;br /&gt;
* login&lt;br /&gt;
* click Appearance (a menu item)&lt;br /&gt;
* Find the &amp;quot;Masspirates Drupal Theme&amp;quot;.  Click &amp;quot;Enable and set default&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Click &amp;quot;Modules&amp;quot; menu item&lt;br /&gt;
* Enable: CiviCRM, CiviCRM Contact Reference Field, CiviCRM Theme, CiviMember Roles Sync, and Webform CiviCRM integration&lt;br /&gt;
* Drupal will tell you that a few additional modules need to be enabled.  Let drupal enable them&lt;br /&gt;
&lt;br /&gt;
Next: use&lt;br /&gt;
http://mapp.local/crew/sites/all/modules/civicrm/install/index.php to&lt;br /&gt;
start the CiviCRM installer.&lt;br /&gt;
&lt;br /&gt;
Use the same connection information for both CiviCRM and Drupal&lt;br /&gt;
databases (i.e., they should be served out of the same database).&lt;br /&gt;
&lt;br /&gt;
From here, complete the CiviCRM installation.&lt;br /&gt;
&lt;br /&gt;
At this point, you have a skeletal installation of Civicrm and drupal.&lt;br /&gt;
Both applications rely heavily on the database for configuration;&lt;br /&gt;
although you've got a copy of all the site code (via git), you don't&lt;br /&gt;
have a copy of the database configuration.  (These databases also have&lt;br /&gt;
supporter PII, so not having copies is probably a good thing).&lt;br /&gt;
However, you'll still be able to test out configuration changes, theme&lt;br /&gt;
work, etc.&lt;br /&gt;
&lt;br /&gt;
To work on the sites theme, change the files in&lt;br /&gt;
&amp;lt;tt&amp;gt;crew/sites/all/themes/mapp&amp;lt;/tt&amp;gt;.  Create a new git branch, if you&lt;br /&gt;
feel that's appropriate for your work.&lt;/div&gt;</summary>
		<author><name>Srevilak</name></author>
	</entry>
</feed>