- Install Docker locally.
- Run
npm install
to install wp-env. - Run
npm start
to start up the Docker containers (or create them if they don't exist yet). - Run
npm run setup
to 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.sh
for details about files/naming—then runnpm run setup:import
andnpm run setup:configure
.) - When you're done developing, run
npm run stop
to 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.