mhoofman/wordpress-heroku

Installing plugins and updates in Wordpress with Heroku

Opened this issue · 8 comments

I have been working with wordpress-heroku and I have been a little surprised to find out that you can't either update or install plugins directly in the server.

The method that has been suggested is that the upgrades and installs be made locally and then committed to the repository. But I find this process incredible tedious and annoying.

First I have to have a webserver installed. Luckily I have PHP5.4 installed and I can use the built in webserver

php -S localhost:8000

Then I have to connected, but it told me I need the Postgresql extension of PHP... so I installed it

Then it is telling me:

Connecting to your PostgreSQL database without a password is considered insecure. If you want to do it anyway, please set "PG4WP_INSECURE" to true in your "db.php" file.

So I have to add a

define( 'PG4WP_INSECURE', true);

to the configuration and now it tells me that it can't find the database (of course) and I realize that I need to build a mock up database every time I want to update my plugins.

All this seems really overkill. Is there a better way to work this problem?

plugins can just be downloaded directly and extracted into the plugins directory; there's no need to run a local web server. :)

How about updating Wordpress version?

again, you can do that manually, but

  • be careful not to override heroku-specific stuff
  • wp updates do get published here too; see e.g. #70

I have the wordpress running on heroku but I can't set access the servers to update or add features to wordpress from the admin panel.

I don't think this is possible, b/c wordpress doesn't have direct access to the filesystem on Heroku. For plugins and themes you would need to extract them yourself into your working copy and then push to heroku. I could be wrong.

The only way to change wordpress hosted on heroku is through your git repository. If you want to add a plugin, simply download the zip file and extract it to your plugins directory in your local repo. Commit the changes and push it back to heroku.

My plugins need to install other plugins, so I need a local copy working.

So in theory I should be able to update WP locally and then push to heroku or is it best to pull from your repo when you preform the update ?