wordpress-heroku icon indicating copy to clipboard operation
wordpress-heroku copied to clipboard

Installing plugins and updates in Wordpress with Heroku

Open enriquemorenotent opened this issue 11 years ago • 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?

enriquemorenotent avatar Feb 07 '14 01:02 enriquemorenotent

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

ibroadfo avatar Feb 09 '14 03:02 ibroadfo

How about updating Wordpress version?

enriquemorenotent avatar Feb 09 '14 03:02 enriquemorenotent

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

ibroadfo avatar Feb 09 '14 13:02 ibroadfo

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.

julianguyen avatar Mar 07 '14 18:03 julianguyen

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.

legendarylarry avatar Mar 07 '14 19:03 legendarylarry

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.

szechyjs avatar Mar 08 '14 04:03 szechyjs

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

quantumpotato avatar Mar 19 '14 15:03 quantumpotato

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 ?

matthewswallace avatar Feb 23 '16 17:02 matthewswallace