Skip to content

Jinksi/thrive-box

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thrive Box Thrive Box

Dependencies

vagrant plugin install vagrant-hostmanager vagrant-triggers

Installation with npm (recommended)

  1. npm install -g newbox

  2. See newbox

Manual Installation

  1. Clone this repo into your desired site directory. git clone https://github.com/Jinksi/thrive-box.git my-site

  2. In Vagrantfile, change the hostname – config.vm.hostname = "thrive-box.dev" to "my-site.dev"

  3. Open your site directory in terminal and run vagrant up. It will take ~10mins the first time you create a site, ~30sec thereafter.

Importing an existing Wordpress site

  1. Copy the site into public

  2. Copy the site's database (mysite_db.sql) to public

  3. Update wp-config.php to use the database user & password: root

  4. SSH into the Virtual Host with vagrant ssh from the site directory

  5. Change to the public directory

cd /var/www/public

  1. Create a new database

wp db create

  1. Import your existing database

wp db import mysite_db.sql

  1. Search and replace

wp search-replace live-site.thrv.xyz my-site.dev

Creating a new Wordpress site

  1. Update site settings in config.yml

Choose sitename, plugins, theme, username, password etc.

  1. SSH into the Virtual Host with vagrant ssh from the site directory

  2. Change to the www directory

cd /var/www

  1. Run the setup script

bash setup.sh

  1. Done

About

Wordpress development box

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 74.3%
  • Shell 25.7%