Professional Workflow from Development to Deployment

Rachel Andrew
Rachel AndrewWriter, speaker, co-founder of Perch CMS. Google Developer Expert for Web Technologies at A List Apart
Professional Workflow From
Development To Deployment
Rachel Andrew, Smashing Conf LA 2015
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Rachel Andrew
http://rachelandrew.co.uk
@rachelandrew
http://grabaperch.com
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Many issues coming into support stem from
poor development and deployment processes.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
The Big Problems
• Developing directly on live sites or in subfolders of live sites
• Developing in subfolders locally
• Setting up local development environments that are so
different to the eventual live server that there is no
confidence when going live
• Deploying via FTP piecemeal and having sites blow up due to
missing files
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
What’s the problem with (S)FTP?
• You are transferring files one by one to the server with no
management of that transfer
• One failed transfer can break the site
• Old files may be left on the server - this could be a security
risk in the case of third party software
• Very hard to debug issues caused by missing files especially
where they are deep in third party code
Forrest Gump
“you’ve got to put the past behind you
before you can move on.”
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Improving workflow is the best way to give
yourself more hours in the day.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
These are baby steps to improved workflow.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
We need …
• to develop multiple websites on our own computer.
• to know that our live server and local server support the
same things.
• to deploy our site and have confidence that what is on the live
server is identical to our local version.
• to allow clients to view a site in progress during initial
development and also when making changes in future.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Working locally
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Developing live on the server!
• High chance of making a change that breaks something about
the site.
• No way for the client to preview changes
• Local version in sync? Do we even have a local version?
• If you get to the beach, you’ll be fixing a website. On your
phone. Have fun with that.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Q. How do you deploy your sites to the server?
A. We just edit on the server directly.
8%
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Let’s develop in a subfolder!
• Create a ‘newsite’ subfolder and develop the site there
• Potential to make an accidental change to the live site with an
FTP mishap
• If the site is in a subfolder then it doesn’t replicate the live
site. To go live you have to change all of your file paths.
• You are not going to the beach. You are fixing up file paths.
More fun!
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
File paths and URLs are fundamental to the
web. Changing them on going live is messy
and fragile.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Developing remotely is going to be a slow way
to work.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Mac Users - install Apache, PHP and MySQL
on your machine.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
homebrew.sh
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
https://echo.co/blog/os-x-1010-yosemite-local-development-environment-apache-php-and-mysql-homebrew
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
MAMP, XAMPP, WAMP
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Q. How do you develop sites locally that require a
web server?
A. MAMP, WAMP, XAMPP or similar
63%
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Linux
Apache
MySQL
PHP
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Take your pick
• Mamp - https://www.mamp.info/en/
• Wamp - http://sourceforge.net/projects/wampserver/
• Xampp - https://www.apachefriends.org
• EasyPHP - http://www.easyphp.org/
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
VirtualHosts - many websites on one server
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Avoid creating your own local version of
developing in a subfolder. Remember - we
don’t want to change file paths to go live!
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
https://www.mamp.info/en/mamp-pro/
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Access multiple sites at client1.dev, client2.dev
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
In an ideal world your local development
environment is identical to the live server.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
http://php.net/manual/en/function.strftime.php
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
PHP Versions can be different. PHP modules
may not be available on the live server.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Virtual Machines
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
virtualbox.org
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
vagrantup.com
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
https://puphpet.com
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
http://rachelandrew.co.uk/presentations/deploy/puphpet
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Upload a PHP file with
this function to find out
what is available on your
live server.
<?php phpinfo();?>
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Things to check on your live server
• PHP Version
• Installed modules such as gd for image processing
• post_max_size and upload_max_filesize determine the size
of files that can be uploaded
• max_input_vars is the number of form fields allowed in a
post
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Shared Folders
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Basic commands for
Vagrant.
// start the VM
> vagrant up
// shut down the VM
> vagrant halt
//destroy the VM
> vagrant destroy
//ssh access
> vagrant ssh
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
http://vagrantmanager.com/
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Share your package with anyone else working
on the site. The whole team can then have the
exact same development setup.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
We want …
to develop multiple websites on our own computer
to know that our live server and local server support the same
things
to deploy our site and have confidence that what is on the live
server is identical to our local version
to allow clients to view a site in progress
to leave work early and go to the beach.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
http://github.com
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
http://beanstalkapp.com
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
If you already have files
you need to add to a git
repository.
cd my-git-repo
git remote add beanstalk
git@accountname.beanstalkapp.com:/gitreponame.git
git push beanstalk
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
If you are starting a new
project.
git clone https://accountname.git.beanstalkapp.com/
gitreponame.git -o beanstalk
cd gitreponame
echo "This is my new project on Beanstalk." > README
git add README
git commit -m "My first commit."
git push beanstalk master
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
www.git-tower.com
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
www.git-tower.com/learn/ebook
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
A branch is a version of your site. We are
deploying the master branch to live.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Production refers to your live site. Staging a
site where changes are tested and previewed.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
We make a change to our files, commit and
push them to Beanstalk. The Master Branch
now contains only what should be deployed.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Deploy all the things
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Deployment with Beanstalk
• Deployments can be Manual or Automatic
• Automatic deployments happen when code is pushed to the
branch you are deploying
• Manual deployments are triggered by you at Beanstalk once
you are happy to go live
• Once a deploy happens Beanstalk makes sure the code on the
live site matches that in Git, removing deleted files, replacing
modified ones and adding new files
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
On Deploy
• Beanstalk connects to your server
• ensures that the files on the server match the files in the
branch you are deploying
• on initial deploy all existing files on the server have to be
checked. Your first deploy will be slow!
• subsequent deploys only change things that have changed in
git.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Deployment Tips
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Create multiple server configuration files
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
http://solutions.grabaperch.com/development/multiple-server-config
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Use .gitignore to keep things out of Beanstalk
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
https://github.com/github/gitignore
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Our new workflow.
1. Edit files as usual on your computer
2. View your site via a web server on that computer
3. Commit changes to Git
4. Push to Beanstalk
5. Login to Beanstalk and hit Deploy
6. Go to the beach.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Databases and Uploaded Assets
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Add CMS managed asset folders to
a .gitignore file so they are not committed
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Use a CDN for assets if your CMS enables it.
Faster download speeds with bonus ease of
management across environments.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Initial deploy to live also involves an export
and import of the MySQL database.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
How to deal with schema or even data
changes on an existing site?
How do you manage database changes between development and live?
“try to keep live db current, and keep list of
changes in settings on dev environment.
this is the one thing that needs a better
solution in my development workflow, esp.
when working together with other
developers on one project.”
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
How do you manage database changes between development and live?
“Labour intensively. Save a dump of the
live version. Then compare the structure of
the development and live structures in a
diff checker. Finally make the updates
required on the live version, importing the
new data. ”
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Create a Maintenance Window where no
changes are made to live.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
https://deliciousbrains.com/wp-migrate-db-pro/
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
http://www.navicat.com/products/navicat-for-mysql
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
We want …
to develop multiple websites on our own computer
to know that our live server and local server support the same
things
to deploy our site and have confidence that what is on the live
server is identical to our local version
to allow clients to view a site in progress
to leave work early and go to the beach.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
A Staging Server
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Using an inexpensive VPS you can create sites
at clientname.yourcompany.com for preview.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
You can deploy the master branch to staging
to check before deploying to production.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Even better, you can use your staging server
to deploy commits to a staging branch.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Deploy with a tag to any commit or push
comment. For example: [Deploy: Staging]
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Try to keep your Master branch deployable to
live. If disaster strikes you can redeploy.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Remember to backup your database and
any resources regularly!
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Logging in and downloading the assets when
you remember is not a backup strategy.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Bonus feature! We can now easily switch
hosting if our current host becomes unreliable.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Unsolved problems
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
There are product opportunities in helping
people in shared PHP hosting land navigate
these issues.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Pre and post-processed CSS and
JavaScript files.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Backup of CMS-managed resources
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Database migrations
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
We want …
to develop multiple websites on our own computer
to know that our live server and local server support the same
things
to deploy our site and have confidence that what is on the live
server is identical to our local version
to allow clients to view a site in progress
to leave work early and go to the beach.
@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
Thank you!
Slides & resources at:
http://rachelandrew.co.uk/presentations/deploy
@rachelandrew
1 of 97

Recommended

Drupal Performance by
Drupal Performance Drupal Performance
Drupal Performance Pantheon
582 views24 slides
ZendCon 2015 - Laravel Forge: Hello World to Hello Production by
ZendCon 2015 - Laravel Forge: Hello World to Hello ProductionZendCon 2015 - Laravel Forge: Hello World to Hello Production
ZendCon 2015 - Laravel Forge: Hello World to Hello ProductionJoe Ferguson
1.4K views117 slides
Web Leaps Forward by
Web Leaps ForwardWeb Leaps Forward
Web Leaps ForwardMoh Haghighat
1.7K views50 slides
php[world] 2015 Laravel 5.1: From Homestead to the Cloud by
php[world] 2015 Laravel 5.1: From Homestead to the Cloudphp[world] 2015 Laravel 5.1: From Homestead to the Cloud
php[world] 2015 Laravel 5.1: From Homestead to the CloudJoe Ferguson
1.4K views126 slides
Frontend Performance: Beginner to Expert to Crazy Person (San Diego Web Perf ... by
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 ...Philip Tellis
1.2K views47 slides
php[world] 2015 Training - Laravel from the Ground Up by
php[world] 2015 Training - Laravel from the Ground Upphp[world] 2015 Training - Laravel from the Ground Up
php[world] 2015 Training - Laravel from the Ground UpJoe Ferguson
980 views25 slides

More Related Content

What's hot

ColdFusion builder plugins by
ColdFusion builder pluginsColdFusion builder plugins
ColdFusion builder pluginsColdFusionConference
706 views23 slides
Madison PHP 2015 - DevOps For Small Teams by
Madison PHP 2015 - DevOps For Small TeamsMadison PHP 2015 - DevOps For Small Teams
Madison PHP 2015 - DevOps For Small TeamsJoe Ferguson
806 views71 slides
How to: Reporting Issues by
How to: Reporting IssuesHow to: Reporting Issues
How to: Reporting IssuesJohn Havlik
986 views26 slides
Paragraphs at drupal 8. by
Paragraphs at drupal 8.Paragraphs at drupal 8.
Paragraphs at drupal 8.Anatoliy Polyakov
372 views15 slides
Silverlight vs HTML5 - Lessons learned from the real world... by
Silverlight vs HTML5 - Lessons learned from the real world...Silverlight vs HTML5 - Lessons learned from the real world...
Silverlight vs HTML5 - Lessons learned from the real world...Peter Gfader
1.8K views111 slides
Create and upload your first Perl module to CPAN by
Create and upload your first Perl module to CPANCreate and upload your first Perl module to CPAN
Create and upload your first Perl module to CPANbrian d foy
4.7K views20 slides

What's hot(20)

Madison PHP 2015 - DevOps For Small Teams by Joe Ferguson
Madison PHP 2015 - DevOps For Small TeamsMadison PHP 2015 - DevOps For Small Teams
Madison PHP 2015 - DevOps For Small Teams
Joe Ferguson806 views
How to: Reporting Issues by John Havlik
How to: Reporting IssuesHow to: Reporting Issues
How to: Reporting Issues
John Havlik986 views
Silverlight vs HTML5 - Lessons learned from the real world... by Peter Gfader
Silverlight vs HTML5 - Lessons learned from the real world...Silverlight vs HTML5 - Lessons learned from the real world...
Silverlight vs HTML5 - Lessons learned from the real world...
Peter Gfader1.8K views
Create and upload your first Perl module to CPAN by brian d foy
Create and upload your first Perl module to CPANCreate and upload your first Perl module to CPAN
Create and upload your first Perl module to CPAN
brian d foy4.7K views
HTML5 for dummies by Ran Bar-Zik
HTML5 for dummiesHTML5 for dummies
HTML5 for dummies
Ran Bar-Zik2.7K views
Untangling fall2017 week1 by Derek Jacoby
Untangling fall2017 week1Untangling fall2017 week1
Untangling fall2017 week1
Derek Jacoby521 views
You'll Never Look at Developer Support the Same Way Again by Anne Gentle
You'll Never Look at Developer Support the Same Way AgainYou'll Never Look at Developer Support the Same Way Again
You'll Never Look at Developer Support the Same Way Again
Anne Gentle1.2K views
Continuous Deployment by Brian Moon
Continuous DeploymentContinuous Deployment
Continuous Deployment
Brian Moon3.6K views
Windy cityrails performance_tuning by John McCaffrey
Windy cityrails performance_tuningWindy cityrails performance_tuning
Windy cityrails performance_tuning
John McCaffrey1.7K views
ESADE - Plugged-In Management by Terri Griffith
ESADE - Plugged-In ManagementESADE - Plugged-In Management
ESADE - Plugged-In Management
Terri Griffith375 views
Introduction to-ict by Krish
Introduction to-ictIntroduction to-ict
Introduction to-ict
Krish 206 views
Best practices for Continuous Deployment with Drupal - DrupalCon Latin Améric... by Taller Negócio Digitais
Best practices for Continuous Deployment with Drupal - DrupalCon Latin Améric...Best practices for Continuous Deployment with Drupal - DrupalCon Latin Améric...
Best practices for Continuous Deployment with Drupal - DrupalCon Latin Améric...
Frontend Performance: Beginner to Expert to Crazy Person by Philip Tellis
Frontend Performance: Beginner to Expert to Crazy PersonFrontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy Person
Philip Tellis7.9K views
Continuous Delivery and Zero Downtime: What your architecture needs to succeed by Axel Fontaine
Continuous Delivery and Zero Downtime: What your architecture needs to succeedContinuous Delivery and Zero Downtime: What your architecture needs to succeed
Continuous Delivery and Zero Downtime: What your architecture needs to succeed
Axel Fontaine1.3K views
Frontend Performance: Beginner to Expert to Crazy Person by Philip Tellis
Frontend Performance: Beginner to Expert to Crazy PersonFrontend Performance: Beginner to Expert to Crazy Person
Frontend Performance: Beginner to Expert to Crazy Person
Philip Tellis1.9K views

Viewers also liked

ConFoo 2016: Development to Deployment by
ConFoo 2016: Development to DeploymentConFoo 2016: Development to Deployment
ConFoo 2016: Development to DeploymentRachel Andrew
703 views97 slides
How Customers Hold the Secret to Your Success by
How Customers Hold the Secret to Your SuccessHow Customers Hold the Secret to Your Success
How Customers Hold the Secret to Your SuccessRachel Andrew
1.9K views71 slides
Making time for your project by
Making time for your projectMaking time for your project
Making time for your projectRachel Andrew
1K views81 slides
R by
RR
RRachel Andrew
658 views84 slides
Configuration Management with Puppet by
Configuration Management with Puppet Configuration Management with Puppet
Configuration Management with Puppet Rachel Andrew
1.5K views84 slides
Perch CMS Summit: Perch Template Tips and Tricks by
Perch CMS Summit: Perch Template Tips and TricksPerch CMS Summit: Perch Template Tips and Tricks
Perch CMS Summit: Perch Template Tips and TricksRachel Andrew
3.9K views85 slides

Viewers also liked(20)

ConFoo 2016: Development to Deployment by Rachel Andrew
ConFoo 2016: Development to DeploymentConFoo 2016: Development to Deployment
ConFoo 2016: Development to Deployment
Rachel Andrew703 views
How Customers Hold the Secret to Your Success by Rachel Andrew
How Customers Hold the Secret to Your SuccessHow Customers Hold the Secret to Your Success
How Customers Hold the Secret to Your Success
Rachel Andrew1.9K views
Making time for your project by Rachel Andrew
Making time for your projectMaking time for your project
Making time for your project
Rachel Andrew1K views
Configuration Management with Puppet by Rachel Andrew
Configuration Management with Puppet Configuration Management with Puppet
Configuration Management with Puppet
Rachel Andrew1.5K views
Perch CMS Summit: Perch Template Tips and Tricks by Rachel Andrew
Perch CMS Summit: Perch Template Tips and TricksPerch CMS Summit: Perch Template Tips and Tricks
Perch CMS Summit: Perch Template Tips and Tricks
Rachel Andrew3.9K views
CSS Conf Budapest - New CSS Layout by Rachel Andrew
CSS Conf Budapest - New CSS LayoutCSS Conf Budapest - New CSS Layout
CSS Conf Budapest - New CSS Layout
Rachel Andrew965 views
What The F#%! is Snapchat? by Luis Ruiz
What The F#%! is Snapchat?What The F#%! is Snapchat?
What The F#%! is Snapchat?
Luis Ruiz5.7K views
Memory Management in Chrome's JavaScript Runtime (V8) at #code16 by Hadi Michel
Memory Management in Chrome's JavaScript Runtime (V8) at #code16Memory Management in Chrome's JavaScript Runtime (V8) at #code16
Memory Management in Chrome's JavaScript Runtime (V8) at #code16
Hadi Michel1.9K views
An Event Apart Nashville: CSS Grid Layout by Rachel Andrew
An Event Apart Nashville: CSS Grid LayoutAn Event Apart Nashville: CSS Grid Layout
An Event Apart Nashville: CSS Grid Layout
Rachel Andrew1.7K views
All of a sudden ... no luck by Rachel Andrew
All of a sudden ... no luckAll of a sudden ... no luck
All of a sudden ... no luck
Rachel Andrew1.2K views
Future Layout & Performance by Rachel Andrew
Future Layout & PerformanceFuture Layout & Performance
Future Layout & Performance
Rachel Andrew1.8K views
How Customers Hold the Secret to your Success by Rachel Andrew
How Customers Hold the Secret to your SuccessHow Customers Hold the Secret to your Success
How Customers Hold the Secret to your Success
Rachel Andrew848 views
But what about old browsers? by Rachel Andrew
But what about old browsers?But what about old browsers?
But what about old browsers?
Rachel Andrew851 views
Design for Conversation by Tanya Rabourn
Design for ConversationDesign for Conversation
Design for Conversation
Tanya Rabourn6.4K views
Flexbox and Grid Layout by Rachel Andrew
Flexbox and Grid LayoutFlexbox and Grid Layout
Flexbox and Grid Layout
Rachel Andrew2.6K views
CSS Grid Layout - An Event Apart Orlando by Rachel Andrew
CSS Grid Layout - An Event Apart OrlandoCSS Grid Layout - An Event Apart Orlando
CSS Grid Layout - An Event Apart Orlando
Rachel Andrew958 views

Similar to Professional Workflow from Development to Deployment

WordCamp Belfast DevOps for Beginners by
WordCamp Belfast DevOps for BeginnersWordCamp Belfast DevOps for Beginners
WordCamp Belfast DevOps for BeginnersStewart Ritchie
108 views53 slides
Vagrant for local and team WordPress Development by
Vagrant for local and team WordPress DevelopmentVagrant for local and team WordPress Development
Vagrant for local and team WordPress DevelopmentAnthony Alvarez
288 views32 slides
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez by
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony AlvarezDevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony AlvarezAnthony Alvarez
59 views33 slides
Laravel Forge: Hello World to Hello Production by
Laravel Forge: Hello World to Hello ProductionLaravel Forge: Hello World to Hello Production
Laravel Forge: Hello World to Hello ProductionJoe Ferguson
1.1K views123 slides
BADCamp 2008 Core Crazy by
BADCamp 2008 Core CrazyBADCamp 2008 Core Crazy
BADCamp 2008 Core CrazyShaun Haber
386 views43 slides
Rock Solid Deployment of Web Applications by
Rock Solid Deployment of Web ApplicationsRock Solid Deployment of Web Applications
Rock Solid Deployment of Web ApplicationsPablo Godel
10.3K views71 slides

Similar to Professional Workflow from Development to Deployment(20)

WordCamp Belfast DevOps for Beginners by Stewart Ritchie
WordCamp Belfast DevOps for BeginnersWordCamp Belfast DevOps for Beginners
WordCamp Belfast DevOps for Beginners
Stewart Ritchie108 views
Vagrant for local and team WordPress Development by Anthony Alvarez
Vagrant for local and team WordPress DevelopmentVagrant for local and team WordPress Development
Vagrant for local and team WordPress Development
Anthony Alvarez288 views
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez by Anthony Alvarez
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony AlvarezDevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez
Anthony Alvarez59 views
Laravel Forge: Hello World to Hello Production by Joe Ferguson
Laravel Forge: Hello World to Hello ProductionLaravel Forge: Hello World to Hello Production
Laravel Forge: Hello World to Hello Production
Joe Ferguson1.1K views
BADCamp 2008 Core Crazy by Shaun Haber
BADCamp 2008 Core CrazyBADCamp 2008 Core Crazy
BADCamp 2008 Core Crazy
Shaun Haber386 views
Rock Solid Deployment of Web Applications by Pablo Godel
Rock Solid Deployment of Web ApplicationsRock Solid Deployment of Web Applications
Rock Solid Deployment of Web Applications
Pablo Godel10.3K views
ZendCon 2015 - DevOps for Small Teams by Joe Ferguson
ZendCon 2015 - DevOps for Small TeamsZendCon 2015 - DevOps for Small Teams
ZendCon 2015 - DevOps for Small Teams
Joe Ferguson949 views
Symfony Live NYC 2014 - Rock Solid Deployment of Symfony Apps by Pablo Godel
Symfony Live NYC 2014 -  Rock Solid Deployment of Symfony AppsSymfony Live NYC 2014 -  Rock Solid Deployment of Symfony Apps
Symfony Live NYC 2014 - Rock Solid Deployment of Symfony Apps
Pablo Godel2.6K views
Active Web Development by Divya Manian
Active Web DevelopmentActive Web Development
Active Web Development
Divya Manian2.4K views
Continuous Integration with Open Source Tools - PHPUgFfm 2014-11-20 by Michael Lihs
Continuous Integration with Open Source Tools - PHPUgFfm 2014-11-20Continuous Integration with Open Source Tools - PHPUgFfm 2014-11-20
Continuous Integration with Open Source Tools - PHPUgFfm 2014-11-20
Michael Lihs4.5K views
Building a PWA - For Everyone Who Is Scared To by Raymond Camden
Building a PWA - For Everyone Who Is Scared ToBuilding a PWA - For Everyone Who Is Scared To
Building a PWA - For Everyone Who Is Scared To
Raymond Camden844 views
Contributing to WordPress core - a primer by lessbloat
Contributing to WordPress core - a primerContributing to WordPress core - a primer
Contributing to WordPress core - a primer
lessbloat635 views
Owning word press all you need to know as a wordpress developer by lutaaya ... by Lutaaya Shafiq
Owning word press   all you need to know as a wordpress developer by lutaaya ...Owning word press   all you need to know as a wordpress developer by lutaaya ...
Owning word press all you need to know as a wordpress developer by lutaaya ...
Lutaaya Shafiq524 views
DiUS Computing Lca Rails Final by Robert Postill
DiUS  Computing Lca Rails FinalDiUS  Computing Lca Rails Final
DiUS Computing Lca Rails Final
Robert Postill587 views
Laravel Forge: Hello World to Hello Production by Joe Ferguson
Laravel Forge: Hello World to Hello ProductionLaravel Forge: Hello World to Hello Production
Laravel Forge: Hello World to Hello Production
Joe Ferguson8.1K views
OpenNebulaConf 2013 - OpenNebula in a Multi-Customer-Environment by Bernd Erk by OpenNebula Project
OpenNebulaConf 2013 - OpenNebula in a Multi-Customer-Environment by Bernd ErkOpenNebulaConf 2013 - OpenNebula in a Multi-Customer-Environment by Bernd Erk
OpenNebulaConf 2013 - OpenNebula in a Multi-Customer-Environment by Bernd Erk
OpenNebula Project1.2K views

More from Rachel Andrew

All Day Hey! Unlocking The Power of CSS Grid Layout by
All Day Hey! Unlocking The Power of CSS Grid LayoutAll Day Hey! Unlocking The Power of CSS Grid Layout
All Day Hey! Unlocking The Power of CSS Grid LayoutRachel Andrew
2.2K views113 slides
SmashingConf SF: Unlocking the Power of CSS Grid Layout by
SmashingConf SF: Unlocking the Power of CSS Grid LayoutSmashingConf SF: Unlocking the Power of CSS Grid Layout
SmashingConf SF: Unlocking the Power of CSS Grid LayoutRachel Andrew
2.3K views113 slides
Unlocking the Power of CSS Grid Layout by
Unlocking the Power of CSS Grid LayoutUnlocking the Power of CSS Grid Layout
Unlocking the Power of CSS Grid LayoutRachel Andrew
2K views113 slides
The Creative New World of CSS by
The Creative New World of CSSThe Creative New World of CSS
The Creative New World of CSSRachel Andrew
2K views144 slides
Into the Weeds of CSS Layout by
Into the Weeds of CSS LayoutInto the Weeds of CSS Layout
Into the Weeds of CSS LayoutRachel Andrew
1.5K views93 slides
Solving Layout Problems with CSS Grid & Friends - DevFest17 by
Solving Layout Problems with CSS Grid & Friends - DevFest17Solving Layout Problems with CSS Grid & Friends - DevFest17
Solving Layout Problems with CSS Grid & Friends - DevFest17Rachel Andrew
2.1K views96 slides

More from Rachel Andrew(20)

All Day Hey! Unlocking The Power of CSS Grid Layout by Rachel Andrew
All Day Hey! Unlocking The Power of CSS Grid LayoutAll Day Hey! Unlocking The Power of CSS Grid Layout
All Day Hey! Unlocking The Power of CSS Grid Layout
Rachel Andrew2.2K views
SmashingConf SF: Unlocking the Power of CSS Grid Layout by Rachel Andrew
SmashingConf SF: Unlocking the Power of CSS Grid LayoutSmashingConf SF: Unlocking the Power of CSS Grid Layout
SmashingConf SF: Unlocking the Power of CSS Grid Layout
Rachel Andrew2.3K views
Unlocking the Power of CSS Grid Layout by Rachel Andrew
Unlocking the Power of CSS Grid LayoutUnlocking the Power of CSS Grid Layout
Unlocking the Power of CSS Grid Layout
Rachel Andrew2K views
The Creative New World of CSS by Rachel Andrew
The Creative New World of CSSThe Creative New World of CSS
The Creative New World of CSS
Rachel Andrew2K views
Into the Weeds of CSS Layout by Rachel Andrew
Into the Weeds of CSS LayoutInto the Weeds of CSS Layout
Into the Weeds of CSS Layout
Rachel Andrew1.5K views
Solving Layout Problems with CSS Grid & Friends - DevFest17 by Rachel Andrew
Solving Layout Problems with CSS Grid & Friends - DevFest17Solving Layout Problems with CSS Grid & Friends - DevFest17
Solving Layout Problems with CSS Grid & Friends - DevFest17
Rachel Andrew2.1K views
View Source London: Solving Layout Problems with CSS Grid & Friends by Rachel Andrew
View Source London: Solving Layout Problems with CSS Grid & FriendsView Source London: Solving Layout Problems with CSS Grid & Friends
View Source London: Solving Layout Problems with CSS Grid & Friends
Rachel Andrew1K views
DevFest Nantes - Start Using CSS Grid Layout today by Rachel Andrew
DevFest Nantes - Start Using CSS Grid Layout todayDevFest Nantes - Start Using CSS Grid Layout today
DevFest Nantes - Start Using CSS Grid Layout today
Rachel Andrew1.1K views
Start Using CSS Grid Layout Today - RuhrJS by Rachel Andrew
Start Using CSS Grid Layout Today - RuhrJSStart Using CSS Grid Layout Today - RuhrJS
Start Using CSS Grid Layout Today - RuhrJS
Rachel Andrew990 views
404.ie: Solving Layout Problems with CSS Grid & Friends by Rachel Andrew
404.ie: Solving Layout Problems with CSS Grid & Friends404.ie: Solving Layout Problems with CSS Grid & Friends
404.ie: Solving Layout Problems with CSS Grid & Friends
Rachel Andrew909 views
Solving Layout Problems with CSS Grid & Friends - WEBU17 by Rachel Andrew
Solving Layout Problems with CSS Grid & Friends - WEBU17Solving Layout Problems with CSS Grid & Friends - WEBU17
Solving Layout Problems with CSS Grid & Friends - WEBU17
Rachel Andrew902 views
Laying out the future with grid & flexbox - Smashing Conf Freiburg by Rachel Andrew
Laying out the future with grid & flexbox - Smashing Conf FreiburgLaying out the future with grid & flexbox - Smashing Conf Freiburg
Laying out the future with grid & flexbox - Smashing Conf Freiburg
Rachel Andrew2.4K views
Solving Layout Problems with CSS Grid & Friends - NordicJS by Rachel Andrew
Solving Layout Problems with CSS Grid & Friends - NordicJSSolving Layout Problems with CSS Grid & Friends - NordicJS
Solving Layout Problems with CSS Grid & Friends - NordicJS
Rachel Andrew2.7K views
Google Developers Experts Summit 2017 - CSS Layout by Rachel Andrew
Google Developers Experts Summit 2017 - CSS Layout Google Developers Experts Summit 2017 - CSS Layout
Google Developers Experts Summit 2017 - CSS Layout
Rachel Andrew1.4K views
Web Summer Camp Keynote by Rachel Andrew
Web Summer Camp KeynoteWeb Summer Camp Keynote
Web Summer Camp Keynote
Rachel Andrew1.9K views
New CSS Layout Meets the Real World by Rachel Andrew
New CSS Layout Meets the Real WorldNew CSS Layout Meets the Real World
New CSS Layout Meets the Real World
Rachel Andrew864 views
An Event Apart DC - New CSS Layout meets the Real World by Rachel Andrew
An Event Apart DC - New CSS Layout meets the Real WorldAn Event Apart DC - New CSS Layout meets the Real World
An Event Apart DC - New CSS Layout meets the Real World
Rachel Andrew408 views
Perch, Patterns and Old Browsers by Rachel Andrew
Perch, Patterns and Old BrowsersPerch, Patterns and Old Browsers
Perch, Patterns and Old Browsers
Rachel Andrew1.8K views
Evergreen websites for Evergreen browsers by Rachel Andrew
Evergreen websites for Evergreen browsersEvergreen websites for Evergreen browsers
Evergreen websites for Evergreen browsers
Rachel Andrew1.5K views

Recently uploaded

Five Things You SHOULD Know About Postman by
Five Things You SHOULD Know About PostmanFive Things You SHOULD Know About Postman
Five Things You SHOULD Know About PostmanPostman
33 views43 slides
AMAZON PRODUCT RESEARCH.pdf by
AMAZON PRODUCT RESEARCH.pdfAMAZON PRODUCT RESEARCH.pdf
AMAZON PRODUCT RESEARCH.pdfJerikkLaureta
26 views13 slides
handbook for web 3 adoption.pdf by
handbook for web 3 adoption.pdfhandbook for web 3 adoption.pdf
handbook for web 3 adoption.pdfLiveplex
22 views16 slides
Voice Logger - Telephony Integration Solution at Aegis by
Voice Logger - Telephony Integration Solution at AegisVoice Logger - Telephony Integration Solution at Aegis
Voice Logger - Telephony Integration Solution at AegisNirmal Sharma
39 views1 slide
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ... by
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...Jasper Oosterveld
18 views49 slides

Recently uploaded(20)

Five Things You SHOULD Know About Postman by Postman
Five Things You SHOULD Know About PostmanFive Things You SHOULD Know About Postman
Five Things You SHOULD Know About Postman
Postman33 views
AMAZON PRODUCT RESEARCH.pdf by JerikkLaureta
AMAZON PRODUCT RESEARCH.pdfAMAZON PRODUCT RESEARCH.pdf
AMAZON PRODUCT RESEARCH.pdf
JerikkLaureta26 views
handbook for web 3 adoption.pdf by Liveplex
handbook for web 3 adoption.pdfhandbook for web 3 adoption.pdf
handbook for web 3 adoption.pdf
Liveplex22 views
Voice Logger - Telephony Integration Solution at Aegis by Nirmal Sharma
Voice Logger - Telephony Integration Solution at AegisVoice Logger - Telephony Integration Solution at Aegis
Voice Logger - Telephony Integration Solution at Aegis
Nirmal Sharma39 views
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ... by Jasper Oosterveld
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...
ESPC 2023 - Protect and Govern your Sensitive Data with Microsoft Purview in ...
STPI OctaNE CoE Brochure.pdf by madhurjyapb
STPI OctaNE CoE Brochure.pdfSTPI OctaNE CoE Brochure.pdf
STPI OctaNE CoE Brochure.pdf
madhurjyapb14 views
Transcript: The Details of Description Techniques tips and tangents on altern... by BookNet Canada
Transcript: The Details of Description Techniques tips and tangents on altern...Transcript: The Details of Description Techniques tips and tangents on altern...
Transcript: The Details of Description Techniques tips and tangents on altern...
BookNet Canada136 views
The details of description: Techniques, tips, and tangents on alternative tex... by BookNet Canada
The details of description: Techniques, tips, and tangents on alternative tex...The details of description: Techniques, tips, and tangents on alternative tex...
The details of description: Techniques, tips, and tangents on alternative tex...
BookNet Canada127 views
Special_edition_innovator_2023.pdf by WillDavies22
Special_edition_innovator_2023.pdfSpecial_edition_innovator_2023.pdf
Special_edition_innovator_2023.pdf
WillDavies2217 views
TouchLog: Finger Micro Gesture Recognition Using Photo-Reflective Sensors by sugiuralab
TouchLog: Finger Micro Gesture Recognition  Using Photo-Reflective SensorsTouchLog: Finger Micro Gesture Recognition  Using Photo-Reflective Sensors
TouchLog: Finger Micro Gesture Recognition Using Photo-Reflective Sensors
sugiuralab19 views
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas... by Bernd Ruecker
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
iSAQB Software Architecture Gathering 2023: How Process Orchestration Increas...
Bernd Ruecker37 views
Attacking IoT Devices from a Web Perspective - Linux Day by Simone Onofri
Attacking IoT Devices from a Web Perspective - Linux Day Attacking IoT Devices from a Web Perspective - Linux Day
Attacking IoT Devices from a Web Perspective - Linux Day
Simone Onofri16 views

Professional Workflow from Development to Deployment

  • 1. Professional Workflow From Development To Deployment Rachel Andrew, Smashing Conf LA 2015
  • 2. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Rachel Andrew http://rachelandrew.co.uk @rachelandrew http://grabaperch.com
  • 3. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Many issues coming into support stem from poor development and deployment processes.
  • 4. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy The Big Problems • Developing directly on live sites or in subfolders of live sites • Developing in subfolders locally • Setting up local development environments that are so different to the eventual live server that there is no confidence when going live • Deploying via FTP piecemeal and having sites blow up due to missing files
  • 5. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy What’s the problem with (S)FTP? • You are transferring files one by one to the server with no management of that transfer • One failed transfer can break the site • Old files may be left on the server - this could be a security risk in the case of third party software • Very hard to debug issues caused by missing files especially where they are deep in third party code
  • 6. Forrest Gump “you’ve got to put the past behind you before you can move on.” @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
  • 7. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Improving workflow is the best way to give yourself more hours in the day.
  • 8. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy These are baby steps to improved workflow.
  • 9. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy We need … • to develop multiple websites on our own computer. • to know that our live server and local server support the same things. • to deploy our site and have confidence that what is on the live server is identical to our local version. • to allow clients to view a site in progress during initial development and also when making changes in future.
  • 10. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
  • 11. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Working locally
  • 12. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Developing live on the server! • High chance of making a change that breaks something about the site. • No way for the client to preview changes • Local version in sync? Do we even have a local version? • If you get to the beach, you’ll be fixing a website. On your phone. Have fun with that.
  • 13. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Q. How do you deploy your sites to the server? A. We just edit on the server directly. 8%
  • 14. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Let’s develop in a subfolder! • Create a ‘newsite’ subfolder and develop the site there • Potential to make an accidental change to the live site with an FTP mishap • If the site is in a subfolder then it doesn’t replicate the live site. To go live you have to change all of your file paths. • You are not going to the beach. You are fixing up file paths. More fun!
  • 15. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy File paths and URLs are fundamental to the web. Changing them on going live is messy and fragile.
  • 16. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Developing remotely is going to be a slow way to work.
  • 17. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Mac Users - install Apache, PHP and MySQL on your machine.
  • 18. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy homebrew.sh @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
  • 19. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy https://echo.co/blog/os-x-1010-yosemite-local-development-environment-apache-php-and-mysql-homebrew @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
  • 20. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy MAMP, XAMPP, WAMP
  • 21. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Q. How do you develop sites locally that require a web server? A. MAMP, WAMP, XAMPP or similar 63%
  • 22. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Linux Apache MySQL PHP
  • 23. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Take your pick • Mamp - https://www.mamp.info/en/ • Wamp - http://sourceforge.net/projects/wampserver/ • Xampp - https://www.apachefriends.org • EasyPHP - http://www.easyphp.org/
  • 24. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy VirtualHosts - many websites on one server
  • 25. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Avoid creating your own local version of developing in a subfolder. Remember - we don’t want to change file paths to go live!
  • 26. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy https://www.mamp.info/en/mamp-pro/ @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
  • 27. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Access multiple sites at client1.dev, client2.dev
  • 28. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy In an ideal world your local development environment is identical to the live server.
  • 29. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy http://php.net/manual/en/function.strftime.php @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
  • 30. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy PHP Versions can be different. PHP modules may not be available on the live server.
  • 31. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Virtual Machines
  • 32. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy virtualbox.org @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
  • 33. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy vagrantup.com @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
  • 34. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy https://puphpet.com @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
  • 35. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
  • 36. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy http://rachelandrew.co.uk/presentations/deploy/puphpet
  • 37. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Upload a PHP file with this function to find out what is available on your live server. <?php phpinfo();?>
  • 38. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Things to check on your live server • PHP Version • Installed modules such as gd for image processing • post_max_size and upload_max_filesize determine the size of files that can be uploaded • max_input_vars is the number of form fields allowed in a post
  • 39. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Shared Folders
  • 40. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
  • 41. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
  • 42. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
  • 43. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
  • 44. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Basic commands for Vagrant. // start the VM > vagrant up // shut down the VM > vagrant halt //destroy the VM > vagrant destroy //ssh access > vagrant ssh
  • 45. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy http://vagrantmanager.com/
  • 46. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Share your package with anyone else working on the site. The whole team can then have the exact same development setup.
  • 47. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy We want … to develop multiple websites on our own computer to know that our live server and local server support the same things to deploy our site and have confidence that what is on the live server is identical to our local version to allow clients to view a site in progress to leave work early and go to the beach.
  • 48. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
  • 49. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy http://github.com @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
  • 50. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy http://beanstalkapp.com
  • 51. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy If you already have files you need to add to a git repository. cd my-git-repo git remote add beanstalk git@accountname.beanstalkapp.com:/gitreponame.git git push beanstalk
  • 52. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy If you are starting a new project. git clone https://accountname.git.beanstalkapp.com/ gitreponame.git -o beanstalk cd gitreponame echo "This is my new project on Beanstalk." > README git add README git commit -m "My first commit." git push beanstalk master
  • 53. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy www.git-tower.com
  • 54. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy www.git-tower.com/learn/ebook
  • 55. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy A branch is a version of your site. We are deploying the master branch to live.
  • 56. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Production refers to your live site. Staging a site where changes are tested and previewed.
  • 57. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy We make a change to our files, commit and push them to Beanstalk. The Master Branch now contains only what should be deployed.
  • 58. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Deploy all the things
  • 59. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Deployment with Beanstalk • Deployments can be Manual or Automatic • Automatic deployments happen when code is pushed to the branch you are deploying • Manual deployments are triggered by you at Beanstalk once you are happy to go live • Once a deploy happens Beanstalk makes sure the code on the live site matches that in Git, removing deleted files, replacing modified ones and adding new files
  • 60. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
  • 61. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
  • 62. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy On Deploy • Beanstalk connects to your server • ensures that the files on the server match the files in the branch you are deploying • on initial deploy all existing files on the server have to be checked. Your first deploy will be slow! • subsequent deploys only change things that have changed in git.
  • 63. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Deployment Tips
  • 64. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Create multiple server configuration files
  • 65. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy http://solutions.grabaperch.com/development/multiple-server-config
  • 66. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Use .gitignore to keep things out of Beanstalk
  • 67. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy https://github.com/github/gitignore
  • 68. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
  • 69. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
  • 70. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Our new workflow. 1. Edit files as usual on your computer 2. View your site via a web server on that computer 3. Commit changes to Git 4. Push to Beanstalk 5. Login to Beanstalk and hit Deploy 6. Go to the beach.
  • 71. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Databases and Uploaded Assets
  • 72. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Add CMS managed asset folders to a .gitignore file so they are not committed
  • 73. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Use a CDN for assets if your CMS enables it. Faster download speeds with bonus ease of management across environments.
  • 74. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Initial deploy to live also involves an export and import of the MySQL database.
  • 75. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy How to deal with schema or even data changes on an existing site?
  • 76. How do you manage database changes between development and live? “try to keep live db current, and keep list of changes in settings on dev environment. this is the one thing that needs a better solution in my development workflow, esp. when working together with other developers on one project.” @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
  • 77. How do you manage database changes between development and live? “Labour intensively. Save a dump of the live version. Then compare the structure of the development and live structures in a diff checker. Finally make the updates required on the live version, importing the new data. ” @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy
  • 78. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Create a Maintenance Window where no changes are made to live.
  • 79. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy https://deliciousbrains.com/wp-migrate-db-pro/
  • 80. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy http://www.navicat.com/products/navicat-for-mysql
  • 81. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy We want … to develop multiple websites on our own computer to know that our live server and local server support the same things to deploy our site and have confidence that what is on the live server is identical to our local version to allow clients to view a site in progress to leave work early and go to the beach.
  • 82. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy A Staging Server
  • 83. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Using an inexpensive VPS you can create sites at clientname.yourcompany.com for preview.
  • 84. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy You can deploy the master branch to staging to check before deploying to production.
  • 85. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Even better, you can use your staging server to deploy commits to a staging branch.
  • 86. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Deploy with a tag to any commit or push comment. For example: [Deploy: Staging]
  • 87. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Try to keep your Master branch deployable to live. If disaster strikes you can redeploy.
  • 88. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Remember to backup your database and any resources regularly!
  • 89. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Logging in and downloading the assets when you remember is not a backup strategy.
  • 90. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Bonus feature! We can now easily switch hosting if our current host becomes unreliable.
  • 91. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Unsolved problems
  • 92. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy There are product opportunities in helping people in shared PHP hosting land navigate these issues.
  • 93. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Pre and post-processed CSS and JavaScript files.
  • 94. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Backup of CMS-managed resources
  • 95. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Database migrations
  • 96. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy We want … to develop multiple websites on our own computer to know that our live server and local server support the same things to deploy our site and have confidence that what is on the live server is identical to our local version to allow clients to view a site in progress to leave work early and go to the beach.
  • 97. @rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy@rachelandrew | Read more at http://rachelandrew.co.uk/presentations/deploy Thank you! Slides & resources at: http://rachelandrew.co.uk/presentations/deploy @rachelandrew