This repository tracks changes for SyncHub.
- This project is based on Bedrock. Therefore, its code is managed by Git and Composer. This is why there is no WordPress, or plugin/theme code here: these are all merely dependencies of this project, and are automatically and recursively installed at their most appropriate for the environment versions.
- This project uses Capistrano for deployment, and relevant configs are derived from the bedrock-capistrano project.
- For local development server, this projetct derives relevant configuration from ScotchBox, albeit slightly modifying it to cater for specifics.
- Install Git;
This is the version control software used to manage this project's code. Installing this on Windows will also install Git Bash, which is a Unix shell emulator. If you're on Windows, every time you are told to run something in CLI, this is what you should use.
- Install VirtualBox;
This allows bringing up a virtual server locally, on your computer, and run the website inside it.
- Install Vagrant;
Vagrant is a way to configure and manage virtual environments.
- Clone this repository;
This will download the project files to your computer.
- In the project's folder, run
composer update
in CLI;
This will install project dependencies. It can take some time to download WordPress.
- In the project's folder, run
vagrant up
in CLI;
This may take 15 minutes the first time, due to Vagrant downloading the virtual image.
- Navigate to 192.168.33.10 in your browser;
The first time WordPress installation steps would need to be completed.
This project includes configuration files that allow very easy, atomic, and reversible deployments. Therefore, in order to deploy this project, Capistrano is required, and in turn requires Ruby. It can take some time and effort to configure everything the first time. Due to this, it is recommended to leave the development and deployment of this project to a professional.
- Install Ruby;
- Install Bundler;
- Install project dependencies by running
bundle install
, which will install Capistrano, among other things; - Run
bundle exec cap production deploy
to deploy, which will ask for SSH password.