SlideShare a Scribd company logo
P: 949-230-3594 / ccharlton@stauffer.com
www.Stauffer.com
Powerful Drupal
Administration
Using Drush
O C T 2 5 , 2 0 1 1
EXIT
STAUFFER NEW MEDIA DEVELOPMENT
EXIT
2
ABOUTME
AUTHOR
• Drupal & Flex book (2007)
• Drupal Themes on Lynda.com
CONTRIBUTOR
• Donate and contribute Drupal code
• Level 7 on CertifiedToRock.com
• Drupal since 2005
COMMUNITY LEADER
• Organizer, Speaker, Volunteer
• Teaching since 2007
SENIOR CONSULTANT
• Stauffer.com (based in L.A.)
• PHP/Drupal
• Web Architecture & Development
P: 949-230-3594 / ccharlton@stauffer.com
www.Stauffer.com
EXIT
3
PART#1
Site Aliases
Part 1 Part 2 Part 3
STAUFFER NEW MEDIA DEVELOPMENT
P: 949-230-3594 / ccharlton@stauffer.com
www.Stauffer.com
EXIT
4
BESTPRACTICE
DEVELOPMENT
“Dev”
DEV STAGE PROD
STAGING
“Stage”
PRODUCTION
“Prod” or “Live”
STAUFFER NEW MEDIA DEVELOPMENT
P: 949-230-3594 / ccharlton@stauffer.com
www.Stauffer.com
EXIT
5
BESTERPRACTICER
TESTING
“QA”
QA STAGE PROD
STAGING
“Stage”
PRODUCTION
“Prod” or “Live”
STAUFFER NEW MEDIA DEVELOPMENT
P: 949-230-3594 / ccharlton@stauffer.com
www.Stauffer.com
DEVELOPMENT
“Dev”
DEV
EXIT
6
ELPROBLEMO
P: 949-230-3594 / ccharlton@stauffer.com
www.Stauffer.com
STAUFFER NEW MEDIA DEVELOPMENT
Big Problem: Wasted time and energyProblem: Communication confusion
Problem: Unfriendly interface
> drush long-command --url=example.com
--not-fun --complex --hard-to-read=TRUE
--wish-this-was-easier --FML
My “Dev” or your “Dev”?
Wait! You
have your own “Dev”?
drupal
example.com
example.local
dev.example.com
stage.example.com
old.example.com
beta.example.com
P: 949-230-3594 / ccharlton@stauffer.com
www.Stauffer.com
STAUFFER NEW MEDIA DEVELOPMENT
EXIT
7
P: 949-230-3594 / ccharlton@stauffer.com
www.Stauffer.com
We nickname projects.
We nickname clients.
We nickname environments.
P: 949-230-3594 / ccharlton@stauffer.com
www.Stauffer.com
STAUFFER NEW MEDIA DEVELOPMENT
EXIT
8
P: 949-230-3594 / ccharlton@stauffer.com
www.Stauffer.com
We nickname our sites
P: 949-230-3594 / ccharlton@stauffer.com
www.Stauffer.com
STAUFFER NEW MEDIA DEVELOPMENT
EXIT
9
P: 949-230-3594 / ccharlton@stauffer.com
www.Stauffer.com
Drush Site Aliases
Allow nicknames to be recognized
for Drupal sites and their settings.
P: 949-230-3594 / ccharlton@stauffer.com
www.Stauffer.com
STAUFFER NEW MEDIA DEVELOPMENT
EXIT
10
P: 949-230-3594 / ccharlton@stauffer.com
www.Stauffer.com
$ drush @dev status
... is the same as...
$ drush --root=/path/to/drupal --uri=dev.example.com status
EXIT
11
IMMEDIATEGAIN
P: 949-230-3594 / ccharlton@stauffer.com
www.Stauffer.com
STAUFFER NEW MEDIA DEVELOPMENT
Convenience*
Standards*
Speed
Share
Archive
*some assembly required
STAUFFER NEW MEDIA DEVELOPMENT
EXIT
12
DEFAULTALIASES
P: 949-230-3594 / ccharlton@stauffer.com
www.Stauffer.com
@self
default
STAUFFER NEW MEDIA DEVELOPMENT
EXIT
13
MYALIASES
P: 949-230-3594 / ccharlton@stauffer.com
www.Stauffer.com
@self
default
@project_1
@project_1.dev
@project_1.qa
@project_1.stage
@project_1.prod
STAUFFER NEW MEDIA DEVELOPMENT
EXIT
14
LISTALIASES
P: 949-230-3594 / ccharlton@stauffer.com
www.Stauffer.com
drush sa
STAUFFER NEW MEDIA DEVELOPMENT
EXIT
15
CONFIGSETTINGS
P: 949-230-3594 / ccharlton@stauffer.com
www.Stauffer.com
Start with...
uri = site domain
db-url = database connection string
root = path to Drupal
remote-host = remote IP or hostname
Then move onto...
path-aliases (%dump_dir, %files, %custom)
parent
STAUFFER NEW MEDIA DEVELOPMENT
EXIT
16
NEWALIASES
P: 949-230-3594 / ccharlton@stauffer.com
www.Stauffer.com
drush sa @self --full --with-optional
P: 949-230-3594 / ccharlton@stauffer.com
www.Stauffer.com
STAUFFER NEW MEDIA DEVELOPMENT
EXIT
17
P: 949-230-3594 / ccharlton@stauffer.com
www.Stauffer.com
1./etc/drush
2. In the drush folder
3. Inside an ‘aliases’ folder within the drush folder
4.$HOME/.drush
5. Inside the Drupal ‘sites’ folder
Alias file name saved as:
1.ALIASNAME.alias.drushrc.php
2.aliases.drushrc.php
3.GROUPNAME.aliases.drushrc.php
ALIASDETECTION
STAUFFER NEW MEDIA DEVELOPMENT
EXIT
18
ADVANCEDUSES
P: 949-230-3594 / ccharlton@stauffer.com
www.Stauffer.com
// Easy database syncing!
drush sync @qa @stage
// Easy file syncing!
drush rsync @stage @prod
STAUFFER NEW MEDIA DEVELOPMENT
EXIT
19
DOCUMENTATION
P: 949-230-3594 / ccharlton@stauffer.com
www.Stauffer.com
drush help sa
drush docs-aliases
Basic help
Detailed docs & example code
www.drush.org
P: 949-230-3594 / ccharlton@stauffer.com
www.Stauffer.com
THANKYOUATTEND FUTURE MEETUPS FOR PARTS 2&3
EXIT
STAUFFER NEW MEDIA DEVELOPMENT
Now
Hiring

More Related Content

Similar to Site Aliases: Powerful Drupal Administration Using Drush by Chris Charlton

前瞻性Web性能优化pwpo
前瞻性Web性能优化pwpo前瞻性Web性能优化pwpo
前瞻性Web性能优化pwpo
Michael Zhang
 
Speed up Drupal development with Drush
Speed up Drupal development with DrushSpeed up Drupal development with Drush
Speed up Drupal development with Drush
kbasarab
 
WSO2 Platform Introduction : Why, What and How
WSO2 Platform Introduction : Why, What and How WSO2 Platform Introduction : Why, What and How
WSO2 Platform Introduction : Why, What and How
WSO2
 
Automating Drupal Development: Makefiles, features and beyond
Automating Drupal Development: Makefiles, features and beyondAutomating Drupal Development: Makefiles, features and beyond
Automating Drupal Development: Makefiles, features and beyond
Nuvole
 
Proactive Web Performance Optimization.(Marcel Duran)
Proactive Web Performance Optimization.(Marcel Duran)Proactive Web Performance Optimization.(Marcel Duran)
Proactive Web Performance Optimization.(Marcel Duran)
Ontico
 

Similar to Site Aliases: Powerful Drupal Administration Using Drush by Chris Charlton (20)

前瞻性Web性能优化pwpo
前瞻性Web性能优化pwpo前瞻性Web性能优化pwpo
前瞻性Web性能优化pwpo
 
Automatisation in development and testing - within budget [IronCamp prague 20...
Automatisation in development and testing - within budget [IronCamp prague 20...Automatisation in development and testing - within budget [IronCamp prague 20...
Automatisation in development and testing - within budget [IronCamp prague 20...
 
Frontend Performance: Beginner to Expert to Crazy Person (San Diego Web Perf ...
Frontend Performance: Beginner to Expert to Crazy Person (San Diego Web Perf ...Frontend Performance: Beginner to Expert to Crazy Person (San Diego Web Perf ...
Frontend Performance: Beginner to Expert to Crazy Person (San Diego Web Perf ...
 
How do you implement Continuous Delivery?: Part 5 - Deployment Patterns
How do you implement Continuous Delivery?: Part 5 - Deployment PatternsHow do you implement Continuous Delivery?: Part 5 - Deployment Patterns
How do you implement Continuous Delivery?: Part 5 - Deployment Patterns
 
How do you implement Continuous Delivery?: Part 5 - Deployment Patterns
How do you implement Continuous Delivery?: Part 5 - Deployment Patterns How do you implement Continuous Delivery?: Part 5 - Deployment Patterns
How do you implement Continuous Delivery?: Part 5 - Deployment Patterns
 
Famo.us - New generation of HTML5 Web Application Framework
Famo.us - New generation of HTML5 Web Application FrameworkFamo.us - New generation of HTML5 Web Application Framework
Famo.us - New generation of HTML5 Web Application Framework
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
 
Terraform in action
Terraform in actionTerraform in action
Terraform in action
 
Beginning Drush
Beginning DrushBeginning Drush
Beginning Drush
 
Speed up Drupal development with Drush
Speed up Drupal development with DrushSpeed up Drupal development with Drush
Speed up Drupal development with Drush
 
Off the Treadmill: Building a Drupal Platform for Your Organization
Off the Treadmill: Building a Drupal Platform for Your OrganizationOff the Treadmill: Building a Drupal Platform for Your Organization
Off the Treadmill: Building a Drupal Platform for Your Organization
 
Pp docker-swarm-doxlon-28th-march-2017
Pp docker-swarm-doxlon-28th-march-2017Pp docker-swarm-doxlon-28th-march-2017
Pp docker-swarm-doxlon-28th-march-2017
 
Building a production-ready, fully-scalable Docker Swarm using Terraform & Pa...
Building a production-ready, fully-scalable Docker Swarm using Terraform & Pa...Building a production-ready, fully-scalable Docker Swarm using Terraform & Pa...
Building a production-ready, fully-scalable Docker Swarm using Terraform & Pa...
 
Keeping Local, Staging & Production Sites In Sync
Keeping Local, Staging & Production Sites In SyncKeeping Local, Staging & Production Sites In Sync
Keeping Local, Staging & Production Sites In Sync
 
Dolibarr - information for developers and partners - devcamp Pau 2019
Dolibarr - information for developers and partners - devcamp Pau 2019Dolibarr - information for developers and partners - devcamp Pau 2019
Dolibarr - information for developers and partners - devcamp Pau 2019
 
WSO2 Platform Introduction : Why, What and How
WSO2 Platform Introduction : Why, What and How WSO2 Platform Introduction : Why, What and How
WSO2 Platform Introduction : Why, What and How
 
Automating Drupal Development: Makefiles, features and beyond
Automating Drupal Development: Makefiles, features and beyondAutomating Drupal Development: Makefiles, features and beyond
Automating Drupal Development: Makefiles, features and beyond
 
Proactive Web Performance Optimization.(Marcel Duran)
Proactive Web Performance Optimization.(Marcel Duran)Proactive Web Performance Optimization.(Marcel Duran)
Proactive Web Performance Optimization.(Marcel Duran)
 
Alternative Dispatcher Layer Overview
Alternative Dispatcher Layer OverviewAlternative Dispatcher Layer Overview
Alternative Dispatcher Layer Overview
 
Swing when you're winning - an introduction to Ruby and Sinatra
Swing when you're winning - an introduction to Ruby and SinatraSwing when you're winning - an introduction to Ruby and Sinatra
Swing when you're winning - an introduction to Ruby and Sinatra
 

More from Chris Charlton

Lightning Talk: Drush aliases (Drupal Camp LA 2013)
Lightning Talk: Drush aliases (Drupal Camp LA 2013)Lightning Talk: Drush aliases (Drupal Camp LA 2013)
Lightning Talk: Drush aliases (Drupal Camp LA 2013)
Chris Charlton
 

More from Chris Charlton (10)

Drupal Form API 101 (PHP) - DrupalCamp LA 2012
Drupal Form API 101 (PHP) - DrupalCamp LA 2012Drupal Form API 101 (PHP) - DrupalCamp LA 2012
Drupal Form API 101 (PHP) - DrupalCamp LA 2012
 
Drupal Developer Skills (2012) - DrupalCamp LA 2012
Drupal Developer Skills (2012) - DrupalCamp LA 2012Drupal Developer Skills (2012) - DrupalCamp LA 2012
Drupal Developer Skills (2012) - DrupalCamp LA 2012
 
Sassy CSS (part 2) (Drupal Camp LA 2013)
Sassy CSS (part 2) (Drupal Camp LA 2013)Sassy CSS (part 2) (Drupal Camp LA 2013)
Sassy CSS (part 2) (Drupal Camp LA 2013)
 
Lightning Talk: Drush aliases (Drupal Camp LA 2013)
Lightning Talk: Drush aliases (Drupal Camp LA 2013)Lightning Talk: Drush aliases (Drupal Camp LA 2013)
Lightning Talk: Drush aliases (Drupal Camp LA 2013)
 
Drush 5.0 (DrupalCamp LA 2012) - Chris Charlton
Drush 5.0 (DrupalCamp LA 2012) - Chris CharltonDrush 5.0 (DrupalCamp LA 2012) - Chris Charlton
Drush 5.0 (DrupalCamp LA 2012) - Chris Charlton
 
Changes to Drupal Themes in version 7 (part 1)
Changes to Drupal Themes in version 7 (part 1)Changes to Drupal Themes in version 7 (part 1)
Changes to Drupal Themes in version 7 (part 1)
 
Web Content Management Systems From A Designer's Perspective (Drupal Technica...
Web Content Management Systems From A Designer's Perspective (Drupal Technica...Web Content Management Systems From A Designer's Perspective (Drupal Technica...
Web Content Management Systems From A Designer's Perspective (Drupal Technica...
 
Let's Zen! (Stop Theming From Scratch)
Let's Zen! (Stop Theming From Scratch)Let's Zen! (Stop Theming From Scratch)
Let's Zen! (Stop Theming From Scratch)
 
Flex Flash Air Interfaces for Custom Content Types in Drupal Chris Charlton
Flex Flash Air Interfaces for Custom Content Types in Drupal   Chris CharltonFlex Flash Air Interfaces for Custom Content Types in Drupal   Chris Charlton
Flex Flash Air Interfaces for Custom Content Types in Drupal Chris Charlton
 
Better Drupal Interaction Design with Flex
Better Drupal Interaction Design with FlexBetter Drupal Interaction Design with Flex
Better Drupal Interaction Design with Flex
 

Recently uploaded

How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
Globus
 

Recently uploaded (20)

AI/ML Infra Meetup | Perspective on Deep Learning Framework
AI/ML Infra Meetup | Perspective on Deep Learning FrameworkAI/ML Infra Meetup | Perspective on Deep Learning Framework
AI/ML Infra Meetup | Perspective on Deep Learning Framework
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
 
How Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptxHow Recreation Management Software Can Streamline Your Operations.pptx
How Recreation Management Software Can Streamline Your Operations.pptx
 
Studiovity film pre-production and screenwriting software
Studiovity film pre-production and screenwriting softwareStudiovity film pre-production and screenwriting software
Studiovity film pre-production and screenwriting software
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
AI/ML Infra Meetup | ML explainability in Michelangelo
AI/ML Infra Meetup | ML explainability in MichelangeloAI/ML Infra Meetup | ML explainability in Michelangelo
AI/ML Infra Meetup | ML explainability in Michelangelo
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
 
Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
 
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...
Abortion ^Clinic ^%[+971588192166''] Abortion Pill Al Ain (?@?) Abortion Pill...
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
 
GraphAware - Transforming policing with graph-based intelligence analysis
GraphAware - Transforming policing with graph-based intelligence analysisGraphAware - Transforming policing with graph-based intelligence analysis
GraphAware - Transforming policing with graph-based intelligence analysis
 
How to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good PracticesHow to Position Your Globus Data Portal for Success Ten Good Practices
How to Position Your Globus Data Portal for Success Ten Good Practices
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
 
top nidhi software solution freedownload
top nidhi software solution freedownloadtop nidhi software solution freedownload
top nidhi software solution freedownload
 
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
Innovating Inference - Remote Triggering of Large Language Models on HPC Clus...
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
 
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
Field Employee Tracking System| MiTrack App| Best Employee Tracking Solution|...
 
Breaking the Code : A Guide to WhatsApp Business API.pdf
Breaking the Code : A Guide to WhatsApp Business API.pdfBreaking the Code : A Guide to WhatsApp Business API.pdf
Breaking the Code : A Guide to WhatsApp Business API.pdf
 

Site Aliases: Powerful Drupal Administration Using Drush by Chris Charlton

  • 1. P: 949-230-3594 / ccharlton@stauffer.com www.Stauffer.com Powerful Drupal Administration Using Drush O C T 2 5 , 2 0 1 1 EXIT
  • 2. STAUFFER NEW MEDIA DEVELOPMENT EXIT 2 ABOUTME AUTHOR • Drupal & Flex book (2007) • Drupal Themes on Lynda.com CONTRIBUTOR • Donate and contribute Drupal code • Level 7 on CertifiedToRock.com • Drupal since 2005 COMMUNITY LEADER • Organizer, Speaker, Volunteer • Teaching since 2007 SENIOR CONSULTANT • Stauffer.com (based in L.A.) • PHP/Drupal • Web Architecture & Development P: 949-230-3594 / ccharlton@stauffer.com www.Stauffer.com
  • 3. EXIT 3 PART#1 Site Aliases Part 1 Part 2 Part 3 STAUFFER NEW MEDIA DEVELOPMENT P: 949-230-3594 / ccharlton@stauffer.com www.Stauffer.com
  • 4. EXIT 4 BESTPRACTICE DEVELOPMENT “Dev” DEV STAGE PROD STAGING “Stage” PRODUCTION “Prod” or “Live” STAUFFER NEW MEDIA DEVELOPMENT P: 949-230-3594 / ccharlton@stauffer.com www.Stauffer.com
  • 5. EXIT 5 BESTERPRACTICER TESTING “QA” QA STAGE PROD STAGING “Stage” PRODUCTION “Prod” or “Live” STAUFFER NEW MEDIA DEVELOPMENT P: 949-230-3594 / ccharlton@stauffer.com www.Stauffer.com DEVELOPMENT “Dev” DEV
  • 6. EXIT 6 ELPROBLEMO P: 949-230-3594 / ccharlton@stauffer.com www.Stauffer.com STAUFFER NEW MEDIA DEVELOPMENT Big Problem: Wasted time and energyProblem: Communication confusion Problem: Unfriendly interface > drush long-command --url=example.com --not-fun --complex --hard-to-read=TRUE --wish-this-was-easier --FML My “Dev” or your “Dev”? Wait! You have your own “Dev”? drupal example.com example.local dev.example.com stage.example.com old.example.com beta.example.com
  • 7. P: 949-230-3594 / ccharlton@stauffer.com www.Stauffer.com STAUFFER NEW MEDIA DEVELOPMENT EXIT 7 P: 949-230-3594 / ccharlton@stauffer.com www.Stauffer.com We nickname projects. We nickname clients. We nickname environments.
  • 8. P: 949-230-3594 / ccharlton@stauffer.com www.Stauffer.com STAUFFER NEW MEDIA DEVELOPMENT EXIT 8 P: 949-230-3594 / ccharlton@stauffer.com www.Stauffer.com We nickname our sites
  • 9. P: 949-230-3594 / ccharlton@stauffer.com www.Stauffer.com STAUFFER NEW MEDIA DEVELOPMENT EXIT 9 P: 949-230-3594 / ccharlton@stauffer.com www.Stauffer.com Drush Site Aliases Allow nicknames to be recognized for Drupal sites and their settings.
  • 10. P: 949-230-3594 / ccharlton@stauffer.com www.Stauffer.com STAUFFER NEW MEDIA DEVELOPMENT EXIT 10 P: 949-230-3594 / ccharlton@stauffer.com www.Stauffer.com $ drush @dev status ... is the same as... $ drush --root=/path/to/drupal --uri=dev.example.com status
  • 11. EXIT 11 IMMEDIATEGAIN P: 949-230-3594 / ccharlton@stauffer.com www.Stauffer.com STAUFFER NEW MEDIA DEVELOPMENT Convenience* Standards* Speed Share Archive *some assembly required
  • 12. STAUFFER NEW MEDIA DEVELOPMENT EXIT 12 DEFAULTALIASES P: 949-230-3594 / ccharlton@stauffer.com www.Stauffer.com @self default
  • 13. STAUFFER NEW MEDIA DEVELOPMENT EXIT 13 MYALIASES P: 949-230-3594 / ccharlton@stauffer.com www.Stauffer.com @self default @project_1 @project_1.dev @project_1.qa @project_1.stage @project_1.prod
  • 14. STAUFFER NEW MEDIA DEVELOPMENT EXIT 14 LISTALIASES P: 949-230-3594 / ccharlton@stauffer.com www.Stauffer.com drush sa
  • 15. STAUFFER NEW MEDIA DEVELOPMENT EXIT 15 CONFIGSETTINGS P: 949-230-3594 / ccharlton@stauffer.com www.Stauffer.com Start with... uri = site domain db-url = database connection string root = path to Drupal remote-host = remote IP or hostname Then move onto... path-aliases (%dump_dir, %files, %custom) parent
  • 16. STAUFFER NEW MEDIA DEVELOPMENT EXIT 16 NEWALIASES P: 949-230-3594 / ccharlton@stauffer.com www.Stauffer.com drush sa @self --full --with-optional
  • 17. P: 949-230-3594 / ccharlton@stauffer.com www.Stauffer.com STAUFFER NEW MEDIA DEVELOPMENT EXIT 17 P: 949-230-3594 / ccharlton@stauffer.com www.Stauffer.com 1./etc/drush 2. In the drush folder 3. Inside an ‘aliases’ folder within the drush folder 4.$HOME/.drush 5. Inside the Drupal ‘sites’ folder Alias file name saved as: 1.ALIASNAME.alias.drushrc.php 2.aliases.drushrc.php 3.GROUPNAME.aliases.drushrc.php ALIASDETECTION
  • 18. STAUFFER NEW MEDIA DEVELOPMENT EXIT 18 ADVANCEDUSES P: 949-230-3594 / ccharlton@stauffer.com www.Stauffer.com // Easy database syncing! drush sync @qa @stage // Easy file syncing! drush rsync @stage @prod
  • 19. STAUFFER NEW MEDIA DEVELOPMENT EXIT 19 DOCUMENTATION P: 949-230-3594 / ccharlton@stauffer.com www.Stauffer.com drush help sa drush docs-aliases Basic help Detailed docs & example code www.drush.org
  • 20. P: 949-230-3594 / ccharlton@stauffer.com www.Stauffer.com THANKYOUATTEND FUTURE MEETUPS FOR PARTS 2&3 EXIT STAUFFER NEW MEDIA DEVELOPMENT Now Hiring