Laravel Forge - Using Recipes
Posted on July 09, 2014 | By Matt Stauffer
(This is part of a series of posts on Laravel Forge. )
- Getting your first site up and running in Laravel Forge
- Laravel Forge - Logging With Papertrail
- Laravel Forge - Using Environment Variables for Environment Detection
- Laravel Forge - Adding a Queue Worker with Beanstalkd
- Laravel Forge - Adding an SSL Cert
- Laravel Forge - Scheduling a Cron Job
- Laravel Forge - Password Protect a Folder
- Laravel Forge - Wildcard Subdomains
- Laravel Forge - Using Recipes
- Laravel Forge - Hosting on AWS
- Laravel Forge - Forge Plus and Circles
- Laravel Forge - Fixing the CVE-2014-6271 Bash Vulnerability
- Laravel Forge - Global Recipes & the FastCGI Nginx Update
- Starting a blog with Sculpin on Laravel Forge
- Installing a fresh Craft CMS Installation on Laravel Forge
Warning: This post is over a year old. I don't always update old posts with new information, so some of this information may be out of date.
Forge comes with a lot of built-in functionality, but what if you want to make some changes on your own? You can always SSH into your servers to make individual changes, but some times there are changes you want to make on a regular basis, or to every one of your servers.
To address this need--regularly running the same, pre-written script across one or many servers--Forge has the concept of a Recipe. Let's try one out.
Step 1: Find a recipe
Step 2: Add the recipe
Go to the Recipes page on Forge, and add the recipe.
Step 3: Run the recipe
You'll now see your recipe at the bottom of this page in the "Your Recipes" section.
Click the green "play" button to show a popup of all of your servers; check the servers you want to run the script on, press the "Run" button, and that's it!
Once the recipe is finished running, Forge will email you the results.
Now you can create your own arsenal of readymade recipes and run them at your will on your server(s). Once the collection of recipes at ForgeRecipes really grows, there's a ton of potential for these recipes to be the means by which we install and update features that Forge doesn't manage out of the box.
That's it! Enjoy!
Comments? I'm @stauffermatt on Twitter
Tags: forge • laravel • recipes