#Ghost-Vagrant
Vagrant setup for developing Ghost
- changed the Ghost shared folder path to
/home/vagrant/code/Ghost
- changed compass to bourbon as an automatic gem install
- NOTE: be sure to install the Guest Additions bit
- Install VirtualBox and Vagrant 1.2.2
- Linux Users: Install an NFS daemon, e.g.
apt-get install nfs-kernel-server
- Clone this repo
- Edit the
Vagrantfile
in the root- Change your
GhostSourcePath
to match your environment
- Change your
- Edit your machines
hosts
file add192.168.33.10 local.tryghost.org
- Run
vagrant up
from the root of the cloned repo. - This will automatically start ghost at
local.tryghost.org
- To validate code, navigate to the Ghost code (
cd code/Ghost
) and rungrunt validate
.
The packaged vagrant box from Ubuntu contains outdated Virtual Box Guest Additions. Most of the time this shouldn't be a problem, but if you want to update them I recommend this procedure:
- Install the vagrant-vbguest plugin:
vagrant plugin install vagrant-vbguest
- Boot the vm without provisioning:
vagrant up --no-provision
- Login with
vagrant ssh
and runsudo apt-get -y -q purge virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11
- Logout and
vagrant halt
vagrant up --provision
Copyright (C) 2014 The Ghost Foundation - Released under the MIT Lincense.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.