Skip to content

SCMapsAndMods/sc-mods-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sc-mods-website

Development

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.

Initial Setup

  1. Checkout this repo to ~/Deskop/repos (git clone git@github.com:SCMapsAndMods/sc-mods-website.git)
  2. Install Vagrant
  3. Install VirtualBox
  4. In the terminal, run: vagrant box add laravel/homestead
    • Use choice 1 to install the virtualbox version
    • The box might take a while to download
  5. git clone https://github.com/laravel/homestead.git Homestead (we are pulling it to ~/Desktop/repos/Homestead)
    • cd Homestead
    • bash init.sh
    • cd ~/.homestead
    • vi 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
  1. ssh-keygen -t rsa -C "you@homestead"
  2. cd ~/Desktop/repos/Homestead
  3. sudo vi /etc/hosts
    • Add 127.0.0.1 scmods.app
  4. vagrant up
  5. Go to http://scmods.app:8000 in your browser

See Homestead Installation and Setup for more details.

Getting Started

  1. Install Composer globally
    • Please never track composer.phar. It will be ignored in .gitignore in case you cannot install globally.
  2. composer global require "laravel/installer=~1.1"
    • Add to path: sudo vi /etc/paths

Migrations

You must run migrations from within Vagrant:

ssh vagrant@127.0.0.1 -p 2222
cd /home/vagrant/code/
php artisan migrate

Recommended

  1. Install PhpStorm (Recommended editor of choice)

Releases

No releases published

Packages

No packages published

Languages