This project is a template for installing and running WordPress on Heroku. The repository comes bundled with:
- PostgreSQL for WordPress
- Cloudinary for non ephemeral Image and Video Storage
- WP Sendgrid
- Disqus Commenting System
- Wordpress HTTPS
- Fork the repository to your own github
- Create a new php app on on Heroku.
- Add a heroku postgres database to your app
- Deploy to Heroku from github
- After deployment WordPress has a few more steps to setup the installation by visiting your app and thats it!
Because a file cannot be written to Heroku's file system, updating and installing plugins or themes should be done locally and then pushed to Heroku.
Multimedia can also not be stored there for the same reasons. You will need to activate the cloudinary plugin and get your multimedia from cloudinary.
Updating your WordPress version is just a matter of merging the updates into the branch created from the installation.
$ git pull # Get the latest
Using the same branch name from our installation:
$ git checkout production
$ git merge master # Merge latest
$ git push heroku production:master
WordPress needs to update the database. After push, navigate to:
http://your-app-url.herokuapp.com/wp-admin
WordPress will prompt for updating the database. After that you'll be good to go.
If you have files that you want tracked in your repo, but do not need deploying (for example, *.md, *.pdf, *.zip). Then add path or linux file match to the .slugignore
file & these will not be deployed.
Examples:
path/to/ignore/
bin/
*.md
*.pdf
*.zip