Deployments... from dreaded to delightful.
Transcript of Deployments... from dreaded to delightful.
DEPLOYMENTS
from Dreaded to Delightful
Ryan King@ryancanhelpyou
@ryancanhelpyou #WCNYC
• Database transfers• Large files• Keeping everything in sync• Domains / URL structure• WP config settings• Different dev + production environments• FTP craziness
Issues when deploying
@ryancanhelpyou #WCNYC
PLANDESIGNCODETESTDEPLOYREPEAT.
Web workflow
@ryancanhelpyou #WCNYC
PLANDESIGN CODETESTDEPLOYREPEAT.
Web workflow: Design options
...... 1. Prebuilt theme2. Use framework
3. Starter theme
@ryancanhelpyou #WCNYC
Historical Setup
@ryancanhelpyou #WCNYC
Confession
I was a cowboy coder.
@ryancanhelpyou #WCNYC
Ideal Setup
Develop Locally Version control Mirror on staging / production server(s)
@ryancanhelpyou #WCNYC
Local Setup
Text editor +
Local server
?
@ryancanhelpyou #WCNYC
My path
LOCAL SETUP
@ryancanhelpyou #WCNYC
My path: Local servers
@ryancanhelpyou #WCNYC
My path: Local servers
@ryancanhelpyou #WCNYC
My path: Local servers
Both solutions are easy to setup + use.Both give you:
But what if your server is configured differently?
@ryancanhelpyou #WCNYC
My path: Local servers
@ryancanhelpyou #WCNYC
My path: Local tools
build system viewing
preprocessors version control
@ryancanhelpyou #WCNYC
My path
DEPLOYMENTS
@ryancanhelpyou #WCNYC
1.2.
3. WordPress database
... settings
... content images, media theme files plugin files ... content pages posts comments
What are we deploying?
@ryancanhelpyou #WCNYC
My path: Deployments
files database+
@ryancanhelpyou #WCNYC
My path: Deployments
WordPress plugins
@ryancanhelpyou #WCNYC
My path: Deployments
http://roots.io/
@ryancanhelpyou #WCNYC
Roots Walkthrough
• Forum: https://discourse.roots.io• WP/Docker/Roots: https://roots.io/podcast/ep3/• Walkthrough article: http://davekiss.com/devel-
op-wordpress-sites-like-a-goddamn-champion/ ***• Example project: https://roots.io/a-modern-word-
press-example/ ***• Screencasts: https://roots.io/screencasts/ ** (pur-
chase & watch)
@ryancanhelpyou #WCNYC
Other tools
@ryancanhelpyou #WCNYC
Next up...
?
@ryancanhelpyou #WCNYC
Thoughts
@ryancanhelpyou #WCNYC
Resources
• Developer Workflow Tools: http://www.smashingmagazine.com/2013/10/02/powerful-workflow-tips-tools-and-tricks-for-web-design-ers/
• Vagrant: http://torquemag.io/getting-started-vagrant-local-development/• SASS: https://www.codeschool.com/courses/assembling-sass• Gulp: https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md• Capistrano: http://theme.fm/2011/08/tutorial-deploying-word-
press-with-capistrano-2082/• Git + Capistrano: https://marketpress.com/2013/deploying-word-
press-with-git-and-capistrano• Docker: http://goldsounds.com/archives/2015/04/06/
quick-and-easy-wordpress-development-using-docker/• Roots: http://davekiss.com/develop-wordpress-sites-like-a-god-
damn-champion/
@ryancanhelpyou #WCNYC
Thank you
DEPLOYMENTS
from Dreaded to Delightful
Ryan King@ryancanhelpyou