Skip to content
A wrapper for wordpress that puts it in its own submodule and adds environment config options
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cms @ b2fde3d
content
wp-admin
.gitignore
.gitmodules
.htaccess
README.md
env-config.php
index.php
wp-config-sample.php
wp-config.php
wp-login.php
wrapper-config.php

README.md

#WordPress Submodule Wrapper

A simple wrapper to get wordpress working as a submodule

##How to use

1 Clone this repo.

 $ git clone https://github.com/ambercouch/wordpress-submodule-wrapper.git your-wp-folder 

2 Initiate submodules to download WordPress.

 $ git submodule update --init --recursive

3 Copy wp-config-sample.php and rename it for your environment (See Environment Config Files).

4 Add your database info and your unique salt to your new config file.

5 Your done. Browse to you local url and install wordpress as normal.

nb. By default your admin dashboard will be at /cms/wp-admin

##Environment Config Files

You can create, up to three environment config files with the database info for that environment, by renaming wp-config-sample.php.

  • production : production-config.php (default)
  • development : development-config.php
  • local : local-config.php

Which config file is used is decided by your url. By default production-config.php is used. If your url contains .local eg. www.my-website.local then local-config.php is used. If your url contains dev. eg. dev.my-website.com then development-config.php is used.

##Why should I install WordPress like this?

Because I am dogmatic

You can’t perform that action at this time.