Skip to content

bearstech/wordpress_factory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wordpress factory

A factory to prepare, deploy, upgrade your Wordpress.

No more MAMP, XAMP and other strange tools. Your Worpdress runs on a Linux, the same used in production, you work with your tool, and deploy as usual.

The magic

This is no magic. Wordpress factory is just a wrapper of Docker compose and wp-cli. Data stays on your hard drive, action are done in Docker (and inside a virtualbox, if you are using Mac OSX).

Install

You need python and virtualenv to build the application, docker (>=1.3) (local or boot2docker) to use it.

Local install

make install

The application is in ./bin/wpfactory

Demo time

Scaffolding

./bin/wpfactory init

Modify the wordpress.yml file

Start services

./bin/wpfactory up -d

(You can remove -d to see full logs)

Configure your wordpress

./bin/wpfactory config

Wordpress is now running, in port 8000, localhost for linux, ask boot2docker on a Mac :

./bin/wpfactory home

Cleaning

Now you enjoyed your wordpress you can stop it:

./bin/wpfactory stop

And eventually remove all containers:

./bin/wpfactory rm

Manual build

You still can manually build theses docker containers:

./bin/wpfactory build

Then modify docker-compose.yml and remove registry.bearstech.com\ prefix from image name of all your builded images.

Licence

GPL v3, © 2014 Mathieu Lecarme.