18. Homestead
“Laravel Homestead is an official, pre-packaged
Vagrant "box" that provides you a wonderful
development environment without requiring
you to install PHP, HHVM, a web server, and
any other server software on your local machine.”
24. Ready to vagrant up
Our code will be shared from our host machine
~/PhpstormProjects/hello-world
And mapped to the vagrant machine
/home/vagrant/hello-world
32. Homestead is awesome!
We now have a local dev environment
we can easily use, break, and restore
without having to reinstall the
entire operating system and developer tools.
Break something?
33. Staking your own
Homestead
I like to customize homestead
AND
make sure I can easily update from upstream
38. You may not need
customize.sh
It is important to have a way to easily
reproduce your development environment
so that those one off changes you make
are documented and two months down the
road you don’t destroy & up your environment
to find out you have stuff missing
54. Continuous Deployment
“Deploy my code every time tests pass”
Continuous Delivery
“We can deploy whenever we want…but we control when”
Magnus Hedemark: http://puppetlabs.com/blog/continuous-delivery-vs-continuous-deployment-whats-diff
55. Laravel Forge
“A simple way to deploy your laravel applications
onto blazing fast servers”
95. Slack Notifications
You can use cURL to post to Slack channels
curl -X POST --data-urlencode ‘payload=
{"channel": “#devops",
"username": "Forge",
"text": “'"$Message"'",
"icon_emoji": ":shipit:"}'
https://<You>.slack.com/services/
hooks/incoming-webhook
?token=<Your-Slack-Token>
96. Edit our Deployment
Script
Now every deployment will run bower and
notify our slack channel that our repo was deployed.
108. Forge VS Forge Plus
• Manage 5 Servers
• Unlimited Servers
• Forge Circles
109. Recap
Local Development: Use Homestead
Automate build tests and configure
Continuous Deployment
Practice Continuous Delivery if not Continuous Deployment
Remote Deployment: Use Forge