Skip to content

✨ ❄️ 💡 ⬆️ Update to Homestead ^5 and use per project & make command for config #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@
Homestead.json
Homestead.yaml
.env
/aliases
/after.sh
15 changes: 15 additions & 0 deletions Homestead.yaml.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ip: 192.168.10.30
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- { map: ~/Sites/pastebin, to: /home/vagrant/Code/pastebin }
sites:
- { map: pastebin.app, to: /home/vagrant/Code/pastebin/public }
databases:
- homestead
name: pastebin
hostname: pastebin
9 changes: 2 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"require-dev": {
"codeclimate/php-test-reporter": "^0.4.4",
"fzaninotto/faker": "^1.6",
"laravel/homestead": "^5.0",
"laravel/homestead": "^5",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any particularly reason why you changed this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Homestead follows semantic versioning and we end up doing minor releases somewhat often. It's easy to fall behind if you're sticking to a major version. With this change we'll get 5.* instead of only 5.0.*

"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~5.7"
},
Expand All @@ -34,13 +34,8 @@
}
},
"scripts": {
"post-root-package-install": [
"php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd": [
"php -r \"file_exists('.env') || copy('.env.example', '.env');\"",
"Illuminate\\Foundation\\ComposerScripts::postInstall",
"php artisan optimize"
],
Expand Down
Loading