Skip to content

u/morethanccc

In this archive from Jun 2019 to Apr 2022

0
posts
4
comments
0
media
17
score

Top comments

Welcome to real WordPress development. Unfortunately, there aren't any perfect solutions here so I'll list a couple I've used in a pinch or with a particular service I've had at my disposal.

First thing with WordPress Development is that it's all about the host. Get a great WordPress oriented server provider and you're golden. Both WpEngine and Pantheon are WordPress friendly hosts that provide great guides on how to not only manage deployment but continuous integration and multi-team version control.

However, what you'll notice is that when you push from dev to stg to prod with these providers, they are searching and replacing as well. For example, here's the exact S+R transformations that WpEngine makes (with WP-CLI) when you go from dev to stag: https://wpengine.com/support/find-replace/

So basically I do the same thing. Using yaml and wp-cli as described by rabs83 is exactly how I do it when I don't have a provider that does it for me.

For my projects (not clients), I use https://versionpress.com/, gives you version control for the DB, allows you more flexibility on what you pull down from development. Also as mentioned by mym6, anything that humanmade, 10up or Delicious Brains makes is the cutting-edge of WordPress Development, I'd recommend trawlling their repos for WP tools.

https://github.com/humanmade

https://github.com/10up

https://github.com/deliciousbrains

​

My last recommendations are for the frontend. Keep any kind of Javascript out of the SQL database if you can. It's wicked difficult to escape, especially when dealing with cookies, domains, etc. and I've seen it be the bug in many a great plugin/theme. Always use relative URL structures when you can in CSS/SASS.

Best of luck and hope this helps.

8 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.