deployments... from dreaded to delightful

26
DEPLOYMENTS from Dreaded to Delightful Ryan King @ryancanhelpyou

Upload: ryan-king

Post on 15-Apr-2017

400 views

Category:

Internet


6 download

TRANSCRIPT

Page 1: Deployments... from dreaded to delightful

DEPLOYMENTS

from Dreaded to Delightful

Ryan King@ryancanhelpyou

Page 2: Deployments... from dreaded to delightful

@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

@ryancanhelpyou #WCNYC

PLANDESIGNCODETESTDEPLOYREPEAT.

Web workflow

Page 4: Deployments... from dreaded to delightful

@ryancanhelpyou #WCNYC

PLANDESIGN CODETESTDEPLOYREPEAT.

Web workflow: Design options

...... 1. Prebuilt theme2. Use framework

3. Starter theme

Page 5: Deployments... from dreaded to delightful

@ryancanhelpyou #WCNYC

Historical Setup

Page 6: Deployments... from dreaded to delightful

@ryancanhelpyou #WCNYC

Confession

I was a cowboy coder.

Page 7: Deployments... from dreaded to delightful

@ryancanhelpyou #WCNYC

Ideal Setup

Develop Locally Version control Mirror on staging / production server(s)

Page 8: Deployments... from dreaded to delightful

@ryancanhelpyou #WCNYC

Local Setup

Text editor +

Local server

?

Page 9: Deployments... from dreaded to delightful

@ryancanhelpyou #WCNYC

My path

LOCAL SETUP

Page 10: Deployments... from dreaded to delightful

@ryancanhelpyou #WCNYC

My path: Local servers

Page 11: Deployments... from dreaded to delightful

@ryancanhelpyou #WCNYC

My path: Local servers

Page 12: Deployments... from dreaded to delightful

@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

@ryancanhelpyou #WCNYC

My path: Local servers

Page 14: Deployments... from dreaded to delightful

@ryancanhelpyou #WCNYC

My path: Local tools

build system viewing

preprocessors version control

Page 15: Deployments... from dreaded to delightful

@ryancanhelpyou #WCNYC

My path

DEPLOYMENTS

Page 16: Deployments... from dreaded to delightful

@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

@ryancanhelpyou #WCNYC

My path: Deployments

files database+

Page 18: Deployments... from dreaded to delightful

@ryancanhelpyou #WCNYC

My path: Deployments

WordPress plugins

Page 19: Deployments... from dreaded to delightful

@ryancanhelpyou #WCNYC

My path: Deployments

http://roots.io/

Page 20: Deployments... from dreaded to delightful

@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

@ryancanhelpyou #WCNYC

Other tools

Page 22: Deployments... from dreaded to delightful

@ryancanhelpyou #WCNYC

Next up...

Page 23: Deployments... from dreaded to delightful

?

@ryancanhelpyou #WCNYC

Thoughts

Page 24: Deployments... from dreaded to delightful

@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

@ryancanhelpyou #WCNYC

Thank you

Page 26: Deployments... from dreaded to delightful

DEPLOYMENTS

from Dreaded to Delightful

Ryan King@ryancanhelpyou