Local Development
Environments
by: Joe Casabona
[email protected]
@jcasabona
Slide 2
Slide 2 text
Who Am I?
2
Slide 3
Slide 3 text
3
Slide 4
Slide 4 text
Why this
Topic?
4
Slide 5
Slide 5 text
5
Developing on a live server
Editing theme files through WP admin
Not properly testing.
All Bad!
Slide 6
Slide 6 text
Possible
Solutions!
6
Slide 7
Slide 7 text
7
Prod should ONLY have working code!
Dev should be for everything else!
Good hosting providers should have this for you
Dev & Prod
Servers!
Slide 8
Slide 8 text
8
Easy Solution! Download and you have a local
server
PHP, MySQL, Apache
XAMPP even has a WordPress installer
There are pitfalls…
MAMP | XAMPP
Slide 9
Slide 9 text
9
Great place to keep code
Versioning
Automatic Backups
Fantastic for trying things out
Fantastic for Teams
Good hosts will let you deploy code from git!
Git | Github
Slide 10
Slide 10 text
Heavy
Hitters
10
Slide 11
Slide 11 text
11
Emulates Servers & Operating Systems
Basis for a lot more advanced tools like…
Virtual Box
Slide 12
Slide 12 text
12
“Create and configure lightweight, reproducible,
and portable development environments.”
Vagrant
Set up a config file
Spin up a temp server
Tear it down when you’re done or need to start
over
Resource: Varying Vagrant Vagrants
Slide 13
Slide 13 text
13
VVV
“The primary goal of Varying Vagrant Vagrants
(VVV) is to provide an approachable
development environment that matches a typical
production environment.”
Resource: Varying Vagrant Vagrants
Slide 14
Slide 14 text
14
“A remote server automation and deployment tool
written in Ruby"
Capistrano
Spin up local servers
Deploy from your machine to a server
Integrates with git
Complete Magic.