Skip to content

cocoonprojects/ora-vagrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

ora-vagrant

Introduction

This is a Vagrant Virtual Machine for ORA project

Installation

The recommended way to get a working copy of this project is to clone the repository and run the virtual machine.

git clone https://github.com/cocoonprojects/ora-vagrant.git
cd ora-vagrant
vagrant up

Then log into the machine, clone the O.R.A. repository and install all dependencies

vagrant ssh
cd /var/www
rm -Rf ora
git clone git@github.com:cocoonprojects/ora.git
cd ora
composer install
sudo ln -s /var/www/ora/vendor/phpunit/phpunit/phpunit /usr/bin/
sudo ln -s /var/www/ora/vendor/behat/behat/bin/behat /usr/bin/

Now set up all the .local configurations, including database connection settings and the run the database creation (using password ora_DB! and including the event_stream table using the sql script)

vendor/bin/doctrine-module orm:schema-tool:create
mysql -u ora -p oraproject
CREATE TABLE IF NOT EXISTS `event_stream` (
  `eventId` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
  `version` int(11) NOT NULL,
  `eventName` text COLLATE utf8_unicode_ci NOT NULL,
  `payload` text COLLATE utf8_unicode_ci NOT NULL,
  `occurredOn` text COLLATE utf8_unicode_ci NOT NULL,
  `aggregate_id` text COLLATE utf8_unicode_ci NOT NULL,
  `aggregate_type` text COLLATE utf8_unicode_ci NOT NULL,
  PRIMARY KEY (`eventId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

Map in the .hosts file of you machine

192.168.56.101	oraproject.dev
192.168.56.101	oraproject.test

Content

  • Nginx + PHP 5.6
  • Composer
  • MySql
  • MailCatcher

More

To update Composer: sudo composer self-update from the inside the virtual machine

About

Vagrant Virtual Machine for ORA project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published