Drupal Best Practices for development. Step 1: Creating a multi-‐site install Download Dev Desktop 2 at https://www.acquia.com/downloads Download DIT’s distribution at: https://umd.box.com/s/kxs65a95ffo7xw4pa1ul8ffx56kspfyc (this link will get updated periodically) Unzip the distribution at a location of your choice. And remember this location, you will need it in the next step. Install Dev Desktop 2 and start it. Click the + sign at the bottom left and select “Import local Drupal site…”
You will see the window below. Change the Local codebase folder to match the folder where you extracted the distribution above.
Give the site a name (e.g. DIT Base Installation) and hit ok. Then click on the “More” button and select “New Drupal multisite”
Now give the site name that you want to build. (mysite.umd.edu) and hit ok. Once the site is created, select it from the downdown as shown below.
Click on the Local site link: mysite.umd.edu.dd:8083/install.php to finish the multisite installation.
Congratulations! You now have a multisite installation that matches the DIT environment
Step 2: Development Paths Based on the above example, all your site files should be in /sites/{yoursitename}/{themes |modules |files}. Please do not develop under sites/default/{sitename}. In the Configuration=> File System, the Public File System must be set to sites/{yoursitename}/files. Please make sure all your images/logos/files reference this location, "src="/sites/{yoursitename}/files/{name_of_file}.
Step 3: Modules DIT provides a list of modules and libraries by default. Please see this list at https://umd.box.com/s/7k9rtjas62hgo4xoedldfwdqf70vs0vd. These modules are automatically available to you without any additional installation. DIT is responsible for the maintenance and update of these modules and libraries. Please do not install a copy of these modules in you sites/{yoursitename}/modules folder as it will cause a conflict and break your site.
Step 4: Themes Please see http://brand.umd.edu for the most current UMD guidelines and downloadable logos for custom themes
Step 5: SVN Follow the steps at http://drupal.umd.edu/umd_repository to get access and to deploy your files
Step 6: URLs The development URL for your website is: http://dev.{yoursitename}.umd.edu The Q/A or stage URL for your website is: http://stage.{yoursitename}.umd.edu