- Install Docker locally.
- Run
npm installto install wp-env. - Run
npm startto start up the Docker containers (or create them if they don't exist yet). - Run
npm run setupto download the latest database snapshot from prod, install it, and configure local settings. (You must be able to connect to prod over ssh using a local key for this to work. If not, grab the files manually—seestate/_download.shfor details about files/naming—then runnpm run setup:importandnpm run setup:configure.) - When you're done developing, run
npm run stopto stop the Docker containers. To actually tear them down, run the appropriate wp-env command.
If you edit any sass files, run ./build-sass.sh to compile down to css. (TODO: have a watch script to do this automatically.)
The admin user/password locally is set to admin/admin.
Deploy the ninteen-thirty-four folder to wp-content/themes on prod. This only syncs the theme itself: there's no content sync from dev to prod.