Skip to content

Instantly share code, notes, and snippets.

@rkeppner
Last active April 21, 2016 22:03
Show Gist options
  • Select an option

  • Save rkeppner/4f57c072afe363547491 to your computer and use it in GitHub Desktop.

Select an option

Save rkeppner/4f57c072afe363547491 to your computer and use it in GitHub Desktop.
Creating a New Laravel Project in Homestead

Creating a New Laravel Project in Homestead

Scope

These directions are for setting up a new Laravel project with Laravel Homestead for local development.

Prerequisites

You need to have previously installed and configured the Laravel Homestead setup. Those directions are found elsewhere.

You should also have created a new Git repository in GitHub for the project.

Step-by-Step Instructions

Execute the following commands:

  1. composer create-project laravel/laravel russellkeppner.com
  2. cd infusionsoft.com
  3. git init
  4. git remote add origin [email protected]:rkeppner/russellkeppner.com.git
  5. git add -A .
  6. git commit -m 'Initial import of Laravel core.'
  7. git push -u origin --all
  8. git push -u origin --tags
  9. homestead edit
  • Add a new site.
  • Add a new database for the site.
  1. Edit .env file to change DB_DATABASE value to new database.
  2. homestead provision
  3. homestead ssh
  4. Edit /etc/hosts to add a new alias for this site.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment