Hacker News new | ask | show | jobs
by throwawayassist 876 days ago
K.I.S.S

I use git for this. Google: 'git -- bare'

Use that as a 'hub' which you can push and pull your code from. Then using a git hook (post-receive). Run a bash script to install modules, run wp-cli (i.e to change urls on prod) and then reset permission in line with best practices (see their docs).

Simple, 'free' and reliable enough Ive done it on real world prod installs many times via Linode.

Tip: do not include your creds in the bash script - set the machines env or have a file outside the www scope and source/call it instead.

#sorryiammobile

1 comments

Thanks a lot. Will try this process out.