Drupal:dev environment

From EWBTechies Wiki

Jump to: navigation, search

[edit] Dev Environment

[edit] Goal

  • Setup development flow
  • Write to the web root
  • Access the mysql database
  • Access SVN

[edit] Instructions

  1. Login to your chosen development environment (localhost or remote)
  2. enable drupal-dev-1.your.server and durpal-dev-2.your.server
    1. configuring dns (local: /etc/hosts ; remote: dns server)
    2. point the dns' to a directory (virtual hosts in apache conf)
  3. make drupal-dev-1.your.sever say "Hello World 1" and make drupal-dev-2.your.server say "Hello World 2"
  4. Access mysql from the command line
    1. mysql -u username -ppassword databasenam
  5. Install Drupal on drupal-dev-1and drupal-dev-2
    1. Download the most recent version of drupal from drupal.org
    2. Follow instructions on http://drupal.org/getting-started/install
  6. Explore Drupal
    1. Be sure to go to http://drupal-dev-1.your.server/admin
  7. Download the drupal admin module
    1. Find the admin module for drupal 6 on drupal.org
    2. Install the module to sites/all/modules
    3. Enable the module at http://drupal-dev-1.your.server/admin/build/modules
    4. Revisit http://drupal-dev-1.your.server/admin and see the difference!
  8. Put Drupal on revision control
    1. svn import
  9. Setup an svn repository in your home directory
 svnadmin create drupal-dev-1
 svn import drupal-dev-1 file:///Users/YOURNAME/svn_repos/drupal-dev-1 
 mv drupal-dev-1 drupal-dev-1_original 
 svn co file:///Users/YOURNAME/svn_repos/drupal-dev-1