georgia tech drupal users group - local drupal development

28
Eric Scott Sembrat Georgia Institute of Technology Local Dev Environments Building Drupal websites in a local environment.

Upload: eric-sembrat

Post on 05-Dec-2014

1.336 views

Category:

Technology


0 download

DESCRIPTION

Describes the process of creating a local Drupal development environment and the use-cases and benefits that come with it.

TRANSCRIPT

Page 1: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

Local Dev Environments

Building Drupal websites in a local environment.

Page 2: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

• What is a local development environment?• Local development environments:

• Acquia Dev Desktop• LAMP/MAMP/WAMP• Old School Roll Outs

• Resource Links• Questions, Comments?

Game Plan

Page 3: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

IntroductionLocal environment?

Page 4: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

• Local is a web development environment that exists only on your computer.• Not accessible from any other computer• All files are stored on your computer• All settings are set from your computer

What is ‘Local’?

Page 5: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

• Local Web Development is ideal for:• Module and theme creation and editing• Proof-of-concept websites• Early website development• Testing new functionality• Testing changes

Benefits (1)

Page 6: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

• If something goes wrong, you can simply delete the development website on your machine and start over!

Benefits (2)

Page 7: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

• A local environment is composed of four primary components:• Files and folders (Windows, Mac, or Linux)• Server application (Apache)• Database application (MySQL)• PHP programming language (PHP)!

• The combination of these environments is known as a WAMP/MAMP/LAMP stack.

Local Environment

Page 8: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

• The server application acts as:• Gatekeeper for who gets permissions to specific folders and files

• Enabling and disabling of modules• Caching• PHP!

• Commonly used application is Apache

Server

Page 9: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

• The database application acts as:• Gatekeeper for settings and variables for web applications like Drupal!

• Commonly used application is MySQL

Database

Page 10: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

• PHP acts as:• Programming language to build web application such as Drupal

PHP

Page 11: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

• The files and folders act as:• The ‘content’ of your website

Files and Folders

Page 12: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

Local Dev OptionsThree options, ordered from ease-of-use

Page 13: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

Acquia Dev DesktopBy far the easiest to use for local Drupal development

1

Page 14: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

• Acquia Dev Desktop is a free application for creating and maintaining local Drupal websites.• Runs on Windows and Mac• Regularly updated and maintained!

• Acquia Dev Desktop is the easiest WAMP/MAMP stack to set up, configure, and use for Drupal websites.

Acquia Dev Desktop

Page 15: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

• Acquia Dev Desktop is ideal for:• Easy one-click Drupal website creation and deletion

• Basic (default) database and server configuration

Ideal Uses

Page 16: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

Screenshot

Page 17: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

LAMP/MAMP/WAMPMore versatile environments for local Drupal development

2

Page 18: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

• AMP Stacks are preconfigured applications for your operating system (Windows, Mac, Linux) that automatically install and configure a database, web server, and PHP. • Does not automatically install Drupal• Allows for more flexibility and configuration options

AMP Stacks

Page 19: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

• AMPs are ideal for:• Custom configuration web servers running Drupal• e.g. Drupal + ImageMagick

• Web server concurrently running multiple services• e.g. Wordpress and Drupal

Ideal Uses

Page 20: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

• Windows • ?

• Mac • MAMP & MAMP Pro

• Linux • ?

Suggested Apps

Page 21: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

Custom RolloutGoing old-school, huh?

3

Page 22: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

•Custom rollouts allow fine-tune control over the choice of AMP components and their configuration options.

• Involves setting up each of the pieces of a AMP piecemeal

!

•Usually involves building a virtual machine (VM) to house the AMP

Custom

Page 23: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

•Custom rollouts are ideal for:•Non-traditional web applications•Porting to a non-traditional web server•Niche (or picky) web applications

Ideal Uses

Page 24: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

DemoUsing Acquia Dev Desktop

Page 25: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

ResourcesWant to learn more?

Page 26: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

•https://drupal.org/node/157602 •https://drupal.org/documentation/install •https://drupal.org/documentation/install/beginners •http://www.acquia.com/products-services/dev-desktop

Drupal Links

Page 27: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

•http://en.wikipedia.org/wiki/List_of_Apache%E2%80%93MySQL%E2%80%93PHP_packages

•http://en.wikipedia.org/wiki/LAMP_(software_bundle)

General Links

Page 28: Georgia Tech Drupal Users Group - Local Drupal Development

Eric Scott Sembrat Georgia Institute of Technology

Questions?Comments? Concerns?