Skip to content

NDCorp/wordpress-heroku

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordPress Heroku

This project is a template for installing and running WordPress on Heroku. The repository comes bundled with:

Installation

  1. Fork the repository to your own github
  2. Create a new php app on on Heroku.
  3. Add a heroku postgres database to your app
  4. Deploy to Heroku from github
  5. After deployment WordPress has a few more steps to setup the installation by visiting your app and thats it!

Usage

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

Updating is pretty much guaranteed to fail. The postgres database connection won't survive the update. I have tried at various times to fix this and failed. You can see what I have tried on the master branch of this repository. There is definitely some security risk to using this. Only you can decide whether demonstrating your work for free is worth the risk of using outdated software.

Because this can't be updated to newer versions of wordpress newer plugins and themes may also refuse to run. So far this seems to be more of a problem for plugins than themes.

Deployment optimisation

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

Wiki

About

Template project for deploying WordPress to Heroku

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 74.4%
  • JavaScript 13.8%
  • CSS 11.2%
  • Other 0.6%