Giter Site home page Giter Site logo

Wordpress strategy about deliver HOT 9 CLOSED

gerhard avatar gerhard commented on July 20, 2024
Wordpress strategy

from deliver.

Comments (9)

jessor avatar jessor commented on July 20, 2024

yes!

from deliver.

gerhard avatar gerhard commented on July 20, 2024

OK, so would you be putting the entire WP site directory under git or just specific dirs?

In my case, I prefer to have something like Chef or Puppet maintain the core CMS installation (be in WP or something else), my repo only containing the site's files. I'm thinking along the lines of a more generic deliver strategy (static sounds nice) where deliver doesn't care what it's pushing out. It can be just html stuff, or php (which doesn't normall require a web server restart).

Tell me what would make most sense for you and then I can work that in.

from deliver.

videoMonkey avatar videoMonkey commented on July 20, 2024

Is this dead? I would like a static/php delivery, I'm about to start on it myself.

from deliver.

gerhard avatar gerhard commented on July 20, 2024

If you put the whole Wordpress site under git, it works out of the box with the shared strategy. It's the most straightforward thing that you can do and it will just work:

Demi ➜  wordpress git:(master) HOSTS=apps.vagrant STRATEGY=shared deliver -V

BRANCH will be deprecated as of v0.8.0
SERVERS will be deprecated as of v0.8.0

DELIVERING WORDPRESS WITH SHARED STRATEGY

-----> Authorizing hosts
-----> Ensuring hosts are ready to accept git pushes
Initialized empty Git repository in /home/wordpress/app/.git/
-----> Pushing new commits with git to: [email protected]
Counting objects: 1124, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (1094/1094), done.
Writing objects: 100% (1124/1124), 4.95 MiB | 9.15 MiB/s, done.
Total 1124 (delta 70), reused 0 (delta 0)
To [email protected]:~wordpress/app
 * [new branch]      master -> master
-----> Resetting remote hosts to f7d61810c1af73eaaad26a753aadfd258b3ab8ea
HEAD is now at f7d6181 Initial commit
-----> Updating git submodules
-----> Setting file permissions

WORDPRESS DELIVERED!

from deliver.

videoMonkey avatar videoMonkey commented on July 20, 2024

I hadn't dug into your updates and code enough, I just quickly glanced through the issues list and caught the keyword 'wordpress' which is exactly what I am looking to do. I am right now working out setting this up. On a note so related note, can this system revert a delivery to a previous version or do I need to look to another system?

from deliver.

gerhard avatar gerhard commented on July 20, 2024

You revert a delivery by pushing an explicit version. The REFSPEC can be any valid git reference, tag, branch or commit.

from deliver.

gerhard avatar gerhard commented on July 20, 2024

This has been implemented via the shared strategy

from deliver.

videoMonkey avatar videoMonkey commented on July 20, 2024

awesome! this tool is working out to be everything I need, great work team!

from deliver.

gerhard avatar gerhard commented on July 20, 2024

👍

from deliver.

Related Issues (20)

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.