• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Drupal on your laptop
 

Drupal on your laptop

on

  • 783 views

Slides from a demo at Drupal Camp CT 2012

Slides from a demo at Drupal Camp CT 2012

Statistics

Views

Total Views
783
Views on SlideShare
783
Embed Views
0

Actions

Likes
0
Downloads
5
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Drupal on your laptop Drupal on your laptop Presentation Transcript

  • Drupal on your Desktop
  • Drupal on your Desktop Running a webserver and database locally
  • Drupal on your Desktop Running a webserver and database locally• Fast• Easy• Safe• Eliminates network issues in debugging
  • Things you’ll need
  • Things you’ll need Several easy packages available
  • Things you’ll need Several easy packages available• MAMP (or WAMP) - http://www.mamp.info/• Drupal• admin password for your machine
  • Things you may want
  • Things you may want Recommended
  • Things you may want Recommended• drush• wget• a good text editor• GitHub for Mac
  • MAMP
  • Hostname edit your /etc/hosts: add 127.0.0.1 mysite.mydomain.localThis will allow your browser to find your local site
  • DrupalUnpack Drupal into your htdocs /Applications/MAMP/htdocs
  • Drupal Create your site directory at/Applications/MAMP/htdocs/sites/mysite.mydomain.local Copy sites/default/default.settings.php into sites/mysite.mydomain.local as settings.php Create sites/mysite.mydomain.local/files Set permissions (chmod 777 *)
  • MySQL Visit phpMyAdmin Set a root passwordCreate an empty database and a user/password set with access to it
  • Virtual Host setup edit your /Applications/MAMP/conf/apache/httpd.conf:1. Check that NameVirtualHost *:80 is not commented out2. <VirtualHost *:80> DocumentRoot "/Applications/MAMP/htdocs" ServerName d7tester.resonetrics.local </VirtualHost>
  • Install Drupal Visit mysite.myserver.localGo through standard install process
  • Install Drush Get drush from drupal.org/project/drush Unpack wherever it’s convenient Add drush to your $PATHor make an alias in /usr/bin, /usr/local/bin, etc.
  • Use DrushNavigate to sites/mysite.myserver.local in your terminal type “drush” for a list of commandsdrush up - updates your modules and runs update.php drush cc - clears cache drush dl <project_name> - downloads a moduledrush en <project_name> - enables the module for the current site only
  • Git and GitHub Go to github.com and make an account Generating ssh keys:https://help.github.com/articles/generating-ssh-keys http://mac.github.com/