Last active
October 8, 2015 19:38
-
-
Save dgcollier/7bf95080656f996de2df to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Steps: | |
1. Run ansible command to add site events.dev from vagrant LAMP (Mac) | |
ansible-playbook ansible/create-vagrant-site.yml | |
2. Install Laravel w/ composer from VM | |
composer create-project laravel/laravel {projectname.dev} 4.2 --prefer-dist | |
3. Update /etc/hosts | |
subl /etc/hosts | |
4. Create DB w/ ansible command | |
ansible-playbook ansible/create-vagrant-mysql-db.yml | |
5. Create .env.local.php file | |
and env-template.php without values (for git commit) | |
- uses $_ENV['DB_HOST'], etc. | |
6. Update bootstrap/start.php file: | |
$env = $app->detectEnvironment(function() | |
{ | |
return isset($_SERVER['LARAVEL_ENV']) ? $_SERVER['LARAVEL_ENV'] : 'production'; | |
}); | |
7. Remove app/config/local/database.php | |
8. Update app/config/database.php | |
change mysql array to include $_ENV variables | |
9. Remove "composer.lock" from .gitignore file | |
10. Install packages | |
sudo gem install compass | |
sudo gem install css_parser | |
compass create sass-test | |
$ composer require --dev way/generators:~2.0 | |
inside app/config/local/app.php, add: | |
'providers' => append_config(array('Way\Generators\GeneratorsServiceProvider')) | |
$ composer require --dev barryvdh/laravel-debugbar:1.8.* | |
$ composer require erusev/parsedown:~1.1 | |
$ composer require fzaninotto/faker:^1.5 | |
$ composer require matriphe/imageupload:4.2.* | |
12. Initialize Git repository (follow Git instructions) | |
13. DB migrations |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment