• Hi everyone,

    I’m new to the Development world.

    I’ve recently just followed a tutorial on how to create a WordPress site using a pre-built Theme. I had decided to deploy my site in production using Heroku (since it’s the only live setting I’ve been used to recently, and it’s free for the minor use).

    After completing the site with an uploaded theme, installed and activated plugins and uploaded images, Heroku has a habit of refreshing itself, therefore losing all its uploaded contents.

    I tried setting up the AWS S3 bucket, but it hasn’t been working.

    Would someone help guide me on how to set this up?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter webdevlyna

    (@webdevlyna)

    Update: I managed to get the Media uploads to work on S3 using Policy and Permission. However, I’m still not sure if the plugins and theme saved on there as I don’t see it in the S3 bucket.

    To get plugins and themes working you will need to add them to your git repo and push it to Heroku to deploy. Heroku dynos (which runs your “slug”, the deployed files) use an ephemeral storage layer meaning every time they restart (semi-random) everything aside from what’s committed into git is wiped away. It’s best to turn off file modifications from within WP itself as any customization you make installing plugins via WP admin or modifying CSS files will get wiped away as soon as you deploy or if your dyno happens to be moved around.

    For other good practices check out a template I made for running WP on Heroku on GitHub:

    https://github.com/xyu/heroku-wp

    Which is also what I’m using for my blog where I sometimes write about all this as well:

    https://xyu.io/tag/heroku

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘HOW? WordPress Uploaded Themes/Media & activated Plugins to Heroku, AWS S3’ is closed to new replies.