Skip to content

A Wordpress boilerplate optimized for Docker and Heroku

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

marceloglacial/snowpress-boilerplate

Repository files navigation

Heroku

SnowPress Boilerplate

A WordPress installation optimized for Docker and Heroku

Live Demo

Stack and Features

How to Install

Local development

  1. Make sure docker is running
  2. Config your .env file using .env.example as template
  3. Open your terminal
  4. Run: composer update
  5. Run: npm run dev
  6. Open your local wordpress: http://localhost:8080

Heroku Setup

  1. Connect your github repository to heroku
  2. Enable Automatic deploys on Deploy page
  3. Add JawsDB Maria on your add-ons
  4. Add Heroku Redis on your add-ons
  5. Add heroku/php on your buildpacks (settings page)
  6. Add your .env variables on settings page
  7. Configure your Uptime Robot to 20 min to avoid dyno resets
  8. Open your app

IMPORTANT

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.