- Install homebrew (http://brew.sh/index.html)
- Install virtualbox (https://www.virtualbox.org)
- Install docker and composer
brew install docker docker-machine docker-compose homebrew/php/composer.
- Clone git repo
- Run
composer installin project root directory
-
Create the docker machine for local food nodes.
docker-machine create --driver virtualbox local-food-nodes -
Bind the machine environment variables to your terminal window.
eval $(docker-machine env local-food-nodes) -
Build and start docker containers.
docker-compose build --no-cachedocker-compose up -dordocker-compose upif you want to see the php error logs printed to the terminal
Nginx, PHP, MySQL, Redis is now up and running, now we need to configure the project.
- Run
docker-machine lsto get the docker-machine ip. - Get .env from David
- Open .env and update DB_HOST and REDIS_HOST with the docker-machine ip
- Run
php artisan migrateto create the db tables.
Elixir...
Site is now up and running on http://[docker-machine ip]:8080
- php artisan cache:clear
- chmod -R 777 storage
- composer dump-autoload
php artisan migrate --database='phpunit' php artisan db:seed --database='phpunit'