CraftCMS / Digital Ocean / Laravel Forge Recipe.
Digital Ocean / Forge Recipe for CraftCMS websites heavily inspired by nystudio107's craft-script, nginx-craft and their various articles.
Special thanks to Andrew Welch for all his help and guidance.
The craft_do_forge_recipe.sh
perform the following:
- Install Digital Ocean Monitoring tools
- Fix mysql 5.7.5+ issue
- Install
jpegoptim
&optipng
per nystudio107's Creating Optimized Images in Craft CMS article - Add the nginx partials to
/etc/nginx
The script assumes a few things:
- You use Laravel Forge to create and manage your server
- You use Digital Ocean as the sever provider
- You are using a Digital Ocean + Laravel Forge setup per How Agencies & Freelancers Should Do Web Hosting article
- You are running the recipe as
root
- nginx-craft requirements
- Log into your Laravel Forge account
- Click on Recipes
- Give the recipe a name. Example:
CraftCMS Server Setup
- Set the
User
toroot
- Paste the contents of scripts/craft_do_forge_recipe.sh into
Script
- Click on ADD RECIPE button
When you create a new server in Forge, set Post Provition Recipe to CraftCMS Server Setup (or whatever you named).
- Add mozjpeg installation per Installing mozjpeg on Ubuntu 16.04 (Forge)