Giter Club home page Giter Club logo

heroku-wp's Introduction

heroku-wp

Warning

This is more than just a proof-of-concept, but it has not been tested by anyone else than me. Make sure to take a database backup of production database as well as a copy of the envirionment if you decide to try this out. Feel free to improve it too!

Usage

You can install the package by running

heroku plugins:install heroku-wp

This package includes two commands:

  • heroku wp:fork: Forks an existing WordPress application.
  • heroku wp:cli: Wrapper for the wp-cli binary installed through composer.

wp:fork

The command can be seen as an hybrid between heroku fork and review apps functionality. It enhances heroku fork by setting up the database on the forked app based on the database the fork is based from (with search and replace and WP ENV tweaking). It removes limitations from the review apps functionality so forked apps can be created from the user's local branch instead of being limited to GitHub Pull Requests.

Arguments:

  • --name (-n): Fork app name
  • --disable-scale-down: By default forks will try to use minimal ressources and will not follow the parent application. Use --disable-scale-down if you want to uses the same configuration as the parent app.

The application uses a temporary local database to run the search and replace.

wp:cli

The command is a single wrapper around wp-cli.

Example:

heroku wp:cli plugin list

Instead of having to specify the path to the wp-cli itself (unless it was added to $PATH):

heroku run ./vendor/bin/wp plugin list

Limitations

App permissions

Remove auto idle apps

heroku-wp's People

Contributors

janneaalto avatar josepfrantic avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.