These installation instructions assume you are on a Mac using MAMP, Git, and putting your repos in ~/Desktop/repos. Installation instructions for other operating systems should be similar.
- Checkout this repo to
~/Deskop/repos(git clone git@github.com:SCMapsAndMods/sc-mods-website.git) - Install Vagrant
- Install VirtualBox
- In the terminal, run:
vagrant box add laravel/homestead- Use choice
1to install the virtualbox version - The box might take a while to download
- Use choice
git clone https://github.com/laravel/homestead.git Homestead(we are pulling it to~/Desktop/repos/Homestead)cd Homesteadbash init.shcd ~/.homesteadvi Homestead.yaml
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: ~/Desktop/repos/sc-mods-website/laravel
to: /home/vagrant/code
sites:
- map: scmods.app
to: /home/vagrant/code/public
databases:
- homestead
variables:
- key: APP_ENV
value: local
ssh-keygen -t rsa -C "you@homestead"cd ~/Desktop/repos/Homesteadsudo vi /etc/hosts- Add
127.0.0.1 scmods.app
- Add
vagrant up- Go to
http://scmods.app:8000in your browser
See Homestead Installation and Setup for more details.
- Install Composer globally
- Please never track
composer.phar. It will be ignored in.gitignorein case you cannot install globally.
- Please never track
composer global require "laravel/installer=~1.1"- Add to path:
sudo vi /etc/paths
- Add to path:
You must run migrations from within Vagrant:
ssh vagrant@127.0.0.1 -p 2222
cd /home/vagrant/code/
php artisan migrate- Install PhpStorm (Recommended editor of choice)