Giter Site home page Giter Site logo

wpsh / wp-cli-replicator Goto Github PK

View Code? Open in Web Editor NEW
34.0 34.0 4.0 53 KB

Replicate production websites from WordPress eXtended RSS (WXR) export files

Home Page: https://wpsh.org/wp-cli-replicator

License: MIT License

PHP 100.00%
wordpress wp-cli wp-cli-package

wp-cli-replicator's Introduction

WP Shuttle Logo

WP Shuttle for Automatic Plugin Deployments

Getting Started

  1. Add wpsh/wpsh as a developer dependency to your project:

     $ npm install --save-dev wpsh/wpsh
    

    Run npm init if your project is missing the package.json file.

  2. Add wpsh to the scripts section of the package.json file:

     "scripts": {
       "wpsh": "wpsh"
     }
    
  3. Use npm run wpsh to run the WP Shuttle script.

To run it as wpsh instead of npm run wpsh you should add path to the local npm bin folder to the $PATH environment variable by appending the following to ~/.bashrc or ~/.zshrc:

export PATH="./node_modules/.bin:$PATH"

and restart the shell to trigger the change.

Automatic Deployments with Travis CI

  1. Update the Travis CI config .travis.yml to deploy your plugin when committing to master and tagging a release:

     deploy:
       - provider: script
         script: npm run wpsh $TRAVIS_TAG
         on:
           tags: true
       - provider: script
         script: npm run wpsh trunk
         on:
           branch: master
    
  2. Specify the following environment variables in the Travis CI repository settings for deploying to the WordPress plugin SVN repository:

    • WP_ORG_SLUG
    • WP_ORG_USERNAME
    • WP_ORG_PASSWORD
  3. Use .svnignore to exclude files and folders from the deployment.

wp-cli-replicator's People

Contributors

kasparsd avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

wp-cli-replicator's Issues

Allow skipping image replacement

  • Allow to specify image path for replacement.
  • Disable any replacement and keep the original path.
  • Replace path with local path.

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.