Skip to content

Instantly share code, notes, and snippets.

@bmadigan
Created September 10, 2015 20:05
Show Gist options
  • Save bmadigan/4b0a58a05fd9317865ff to your computer and use it in GitHub Desktop.
Save bmadigan/4b0a58a05fd9317865ff to your computer and use it in GitHub Desktop.
New Per Homestead Project

Veracity - Heroku Connect App

If you do not have Homestead installed you will need to install it in the root of your project

You will need to make sure you create an '.env' file in your project root as well.

composer require laravel/homestead

You then init your Homestead server

php vendor/bin/homestead make --name=VeracityApp --hostname=myapp

Then setup Vagrant

vagrant up

Configure App

mv .env.example .env
php artisan key:generate
php artisan app:name Veracity

Visit http://myapp.app:8000/ if everything is okay, go ahead and setup the rest of the workflow.

Run npm

npm install 

Setup Mysql DB

If you haven't already done so, create an alias to ssh

alias vm="ssh [email protected] -p 2222"

If you get a Remote Host Error you will need to add a host key in /Users/yourname/.ssh/known_hosts . You can do so by removing the line in question (eg. known_hosts:10 means line 10) and save the file and try again.

You will then need to connect to the Mysql Server

mysql -u homestead -p

You can list available databases:

create database veracity_sandbox;
exit;

Heroku install and Setup

Env Variables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment