This is a bare-bones Vagrant framework template for a high-performance website hosted on Nginx, HHVM, and MariaDB.
The author uses this to manage a development environment for his blog: Keita's Blog.
-
Vagrant (version 1.5 or higher is required)
-
The
vagrant-hostsupdater
plugin$ vagrant plugin install vagrant-hostsupdater
-
Copy the configuration file.
$ cp config.rb.example config.rb
-
The configuration file included is adequate as a demonstration, but you probably want to adjust some variables.
-
$ vagrant up
-
Fork the repository.
-
Put your theme files in
theme/
.theme/
is automatically synced with/wp-content/themes/{theme_name}
, where{theme_name}
is the value you configured inconfig.rb
-
Put your plugins in
plugins/
.plugins/
is automatically synced with/wp-content/plugins/
.
-
Commit your changes and distribute the repository with your co-workers. Please note that this is a template -- if you want to contribute or fix bugs in the template, please make sure that
theme/
andplugins/
is empty.
Put your SQL dump file in initial_data.sql
, and set config.load_sql
values accordingly in config.rb
. Please note that you probably should exclude the wp_users
and wp_usermeta
tables from the export.
- More WordPress installation options. Eg: Language, version, etc.
- Auto-install plugins.
- Import
wp-content/uploads
data from ZIP / gzip file. - Import data from a WXR (WordPress Export File).
- Auto-deploy script.
Copyright (C) 2014 Keitaroh Kobayashi
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.