A WordPress installation optimized for Docker and Heroku
- CMS: WordPress
- PHP dependency Manager: Composer
- Project structure: BedRock
- Deployment: WordPress on Heroku
- Heroku Keep Alive: Uptime Robot
- Image CDN: Cloudinary
- Local development: Docker
- Make sure
docker
is running - Config your
.env
file using.env.example
as template - Open your terminal
- Run:
composer update
- Run:
npm run dev
- Open your local wordpress: http://localhost:8080
- Connect your github repository to heroku
- Enable
Automatic deploys
on Deploy page - Add
JawsDB Maria
on your add-ons - Add
Heroku Redis
on your add-ons - Add
heroku/php
on your buildpacks (settings page) - Add your
.env
variables on settings page - Configure your Uptime Robot to 20 min to avoid dyno resets
- Open your app
Heroku ephemeral filesystem is not suitable for persistent storage of data/files. That's why Cloudinary Plugin is a mandatory setup.
Make sure to select Cloudinary Only
on Cloudinary > Media settings > Sync > Storage.