-
Notifications
You must be signed in to change notification settings - Fork 15
Development Environment
Austen McDonald edited this page Nov 11, 2016
·
2 revisions
To ensure a consistent development environment, we encourage you to use Vagrant, which is a VM environment that runs on OS X, Linux or Windows.
- Download from https://www.vagrantup.com/downloads.html and install following the instructions on the site.
- You'll need virtualization software like VirtualBox.
# Create a project directory somewhere, like ~/vagrant for example:
mkdir ~/vagrant
cd ~/vagrant
# Create a vagrant instance with a basic Ubuntu setup:
vagrant init ubuntu/trusty64
# Start your instance:
vagrant up
# Connect to your instance:
vagrant ssh
# Install git:
sudo apt-get -y install git
# Install zip/unzip for composer's use
sudo apt-get -y install zip unzip
# Install php7:
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get -y install php7.0 php7.0-fpm php7.0-mysql php7.0-mbstring php7.0-sqlite php-xml
# Install composer:
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
# Install phpunit:
wget https://phar.phpunit.de/phpunit.phar
chmod +x phpunit.phar
sudo mv phpunit.phar /usr/local/bin/phpunit
cd /vagrant
git clone https://github.com/lotgd/core.git
cd core
composer install
./t