Deployments... from dreaded to delightful.
Transcript of Deployments... from dreaded to delightful.
![Page 1: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/1.jpg)
DEPLOYMENTS
from Dreaded to Delightful
Ryan King@ryancanhelpyou
![Page 2: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/2.jpg)
@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
![Page 3: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/3.jpg)
@ryancanhelpyou #WCNYC
PLANDESIGNCODETESTDEPLOYREPEAT.
Web workflow
![Page 4: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/4.jpg)
@ryancanhelpyou #WCNYC
PLANDESIGN CODETESTDEPLOYREPEAT.
Web workflow: Design options
...... 1. Prebuilt theme2. Use framework
3. Starter theme
![Page 5: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/5.jpg)
@ryancanhelpyou #WCNYC
Historical Setup
![Page 6: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/6.jpg)
@ryancanhelpyou #WCNYC
Confession
I was a cowboy coder.
![Page 7: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/7.jpg)
@ryancanhelpyou #WCNYC
Ideal Setup
Develop Locally Version control Mirror on staging / production server(s)
![Page 8: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/8.jpg)
@ryancanhelpyou #WCNYC
Local Setup
Text editor +
Local server
?
![Page 9: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/9.jpg)
@ryancanhelpyou #WCNYC
My path
LOCAL SETUP
![Page 10: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/10.jpg)
@ryancanhelpyou #WCNYC
My path: Local servers
![Page 11: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/11.jpg)
@ryancanhelpyou #WCNYC
My path: Local servers
![Page 12: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/12.jpg)
@ryancanhelpyou #WCNYC
My path: Local servers
Both solutions are easy to setup + use.Both give you:
But what if your server is configured differently?
![Page 13: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/13.jpg)
@ryancanhelpyou #WCNYC
My path: Local servers
![Page 14: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/14.jpg)
@ryancanhelpyou #WCNYC
My path: Local tools
build system viewing
preprocessors version control
![Page 15: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/15.jpg)
@ryancanhelpyou #WCNYC
My path
DEPLOYMENTS
![Page 16: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/16.jpg)
@ryancanhelpyou #WCNYC
1.2.
3. WordPress database
... settings
... content images, media theme files plugin files ... content pages posts comments
What are we deploying?
![Page 17: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/17.jpg)
@ryancanhelpyou #WCNYC
My path: Deployments
files database+
![Page 18: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/18.jpg)
@ryancanhelpyou #WCNYC
My path: Deployments
WordPress plugins
![Page 19: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/19.jpg)
@ryancanhelpyou #WCNYC
My path: Deployments
http://roots.io/
![Page 20: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/20.jpg)
@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)
![Page 21: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/21.jpg)
@ryancanhelpyou #WCNYC
Other tools
![Page 22: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/22.jpg)
@ryancanhelpyou #WCNYC
Next up...
![Page 23: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/23.jpg)
?
@ryancanhelpyou #WCNYC
Thoughts
![Page 24: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/24.jpg)
@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/
![Page 25: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/25.jpg)
@ryancanhelpyou #WCNYC
Thank you
![Page 26: Deployments... from dreaded to delightful.](https://reader031.fdocuments.net/reader031/viewer/2022030316/5876df9e1a28ab046d8b468b/html5/thumbnails/26.jpg)
DEPLOYMENTS
from Dreaded to Delightful
Ryan King@ryancanhelpyou