I have installed a couple of Wordpress plugins on my local development server. When I deploy to the cloud, however, my plugins are not available.
I understand that the read-only file system prevents updating plugins from the deployed app as per this blog post, but is there a trick to getting locally installed plugins to deploy?
When you install the plugins on your local server, it should work when you deploy. No need for a trick.
Make sure you install the plugins to the plugins directory in your wordpress project which you deploy, and make sure you enable the plugins on the production server
Related
I just installed WordPress in Heroku, now I wanted to add the plugin in WordPress but it does not allow me to add the plugin, no option is available for adding new plugin why? please help I'm in great trouble
Heroku is a bit unusual as hosting providers go. The filesystem your code is deployed on is ephemeral - any changes you make to it (like installing plugins) will be blown away a) the next time you deploy and b) at least once daily due to dyno restarts. In addition, if you're running multiple dynos, making changes on one won't reflect on the others.
What you'll need to do is install the plugins locally in your development environment, and check all the added files into the Git repository and deploy that to Heroku.
I successfully deployed a Wordpress website on Heroku.
Here is what I did:
Download wordpress
Push all file on a Github repository
Create Heroku app
Link Heroku app to Github repository
Create clearDB database and update to wordpress config file
Deploy
Everythings is working fine. But whenever I update a file on the github repository and redeploy the heroku app, all user generated content are getting overwritten such as plugins and media contents.
How can I update my wordpress source code without losing any content?
Heroku has an ephemeral file system, meaning that any files that are saved to the Heroku instance while running, will be removed on your next application push. This is why there aren't many easy buildpacks for WordPress. All files "added" to your app have to be hosted elsewhere, like S3. Which makes it not necessarily ideal for a WordPress app without significant modifications.
I use Heroku for a lot of our infrastructure, but for WordPress sites I use Flywheel. (http://getflywheel.com) They have great support, have a handy local app that harnesses a virtual machine that is virtually identical to their live builds, and support intelligent Staging environments. I use DeployHQ to automate the build process similar to how Heroku does it. Pushing my repo will trigger a DeployHQ build to push code to Staging or Production, without affecting any user uploaded content/etc.
I have a Wordpress blog hosted on Heroku.
I'm trying to figure out how to clone the site from Heroku so that I can do my WP development locally (I've set up VVV locally - works like a dream).
I've tried backing up the Heroku site with WP Clone and it fails because Heroku's PHP install doesn't include zlib (I know how to install plugins and have installed and activated the WP Clone plugin, but it screams for zlib when attempting to backup).
I've tried WPManage and it can connect to the Heroku site, but when I try to backup I get a 500 internal server error.
Has anyone had success cloning, or backing up, a WP site and database that is hosted on Heroku? How? Different cloning tools to try?
I'd suggest you do it manually if you planned to do it locally. XAMMP or WAMP?
Just backup your user data, images, plugin and database.
A tool that I have good success with is Duplicator. You're biggest issue is that your PHP config is missing required libs that wordpress needs to function properly.
I would look at getting a PHP install that has zlib in as wordpress itself uses it. See What are PHP extensions and libraries WP needs and/or uses?
I'm in a trouble trying to install phpBB on openshift.
I have created a php5.3 cartridge with PostgreSQL: I unpack phpbb on a folder of my app, I push the change, then I run the installation form the browser.
The forum installation is successful.
In the end I need to delete the "install" folder in order to enable the forum.
I tried it on my standalone wampp server and it works.
So I delete it in my repo, and I commit and push the change.
When the app restarts it automatically tries to go back to the installation: everything is broken.
It seems the push breaks the configuration on the server side.
I also have tried to change the name of the directory using ssh connection, and move the install directory name: this is uneffective.
What's the problem here?
The problem is that if you deploy the phpBB package as downloaded from official website app the files will go on app-deployments with are not persistent on git changes and can not be pull to local. You can try using the OpenShift quickdeply version of phpBB (https://github.com/openshift-quickstart/phpbb-example) that deploys the files to app-root/data (I think :S) and this reamins untouched on git changes.
The "install" folder is at app-root/runtime/repo/php
I installed Heroku on Wordpress by using the guidelines from https://github.com/mhoofman/wordpress-heroku. The system works fine. Only when I try to install plugins I receive the error message
Abort class-pclzip.php : Missing zlib extensions.
The error message is clear, zlib missing. I was just wondering if anyone of you had the same issue and can provide some best practices how to solve the problem?
It seems that heroku does not allow you to create files and you have to extract plugins and themes locally inside their folders respectively and push your changes back to your heroku repository. From the wordpress-heroku documentation:
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.
Heroku does not allow you to modify files. You cannot use the backend of Wordpress to do those things if the site is hosted on Heroku. You have to install locally and then deploy. There is a good tutorial here:
http://wptutorialguide.com/wordpress-on-heroku/