<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/complete-local-production-deploy-guide-laravel-forge-digitalocean--nkkcuhpoh" -->

---
title: Complete Local → Production Deploy Guide (Laravel +...
description: A step-by-step walkthrough for deploying a Laravel application to production using Laravel Forge and DigitalOcean. Covers account setup, server provisioning,...
canonical: https://daily.dev/posts/complete-local-production-deploy-guide-laravel-forge-digitalocean--nkkcuhpoh
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Complete Local → Production Deploy Guide (Laravel + Forge + DigitalOcean) | daily.dev
og:description: A step-by-step walkthrough for deploying a Laravel application to production using Laravel Forge and DigitalOcean. Covers account setup, server provisioning,...
og:url: https://daily.dev/posts/complete-local-production-deploy-guide-laravel-forge-digitalocean--nkkcuhpoh
og:image: https://api.daily.dev/og/posts/NKKcuhpoh.png
og:image:alt: Complete Local → Production Deploy Guide (Laravel + Forge + DigitalOcean)
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Complete Local → Production Deploy Guide (Laravel + Forge + DigitalOcean)

**[Medium](https://daily.dev/sources/medium_js)** · 3 min read · 2 upvotes · 0 comments

## Summary

A step-by-step walkthrough for deploying a Laravel application to production using Laravel Forge and DigitalOcean. Covers account setup, server provisioning, connecting a Git repo, configuring environment variables, DNS and SSL setup with Let's Encrypt, writing a deploy script, configuring queue workers and the scheduler, and going live with monitoring enabled.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://medium.com/@kristitanellari/complete-local-production-deploy-guide-laravel-forge-digitalocean-962b0ef7d099>

## Questions this post answers

### What server size do I need on DigitalOcean to run Laravel with MySQL through Forge?

A minimum of 2GB RAM and 1 CPU is recommended for running Laravel together with MySQL. If queues, Redis, and the database are all running on the same server, 4GB RAM is recommended instead to handle the additional load comfortably.

_Developers sizing a Laravel deployment can compare hosting setups and gotchas on daily.dev._

### What does a basic Laravel deploy script on Forge look like?

A barebones Forge deploy script pulls the latest code with git pull origin main, runs composer install --no-dev --optimize-autoloader, applies migrations with php artisan migrate --force, caches config/routes/views, and restarts queue workers with php artisan queue:restart. It's meant as a starting point that should be extended based on the app's specific needs.

_Teams automating Laravel releases can track deploy script patterns and pitfalls via daily.dev._

## Similar posts on daily.dev

- [Migrating Laravel News from Laravel Forge to Cloud](https://daily.dev/posts/migrating-laravel-news-from-laravel-forge-to-cloud-mmunopgpz) · Laravel News · 3 upvotes · 0 comments
- [What is Laravel Forge?](https://daily.dev/posts/what-is-laravel-forge--8kk2kn4y3) · Larablog · 2 upvotes · 0 comments
- [Laravel - The clean stack for Artisans and agents](https://daily.dev/posts/laravel---the-clean-stack-for-artisans-and-agents-c3cowgih4) · Laravel · 12 upvotes · 0 comments
- [A Production-Ready Laravel Architecture with Traefik and FrankenPHP](https://daily.dev/posts/a-production-ready-laravel-architecture-with-traefik-and-frankenphp-kpydpsaba) · FREEK.DEV · 32 upvotes · 9 comments

---

Tags: [#cicd](https://daily.dev/tags/cicd), [#php](https://daily.dev/tags/php), [#laravel](https://daily.dev/tags/laravel), [#digitalocean](https://daily.dev/tags/digitalocean)

[View this post on daily.dev](https://daily.dev/posts/complete-local-production-deploy-guide-laravel-forge-digitalocean--nkkcuhpoh)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Complete Local → Production Deploy Guide (Laravel + Forge + DigitalOcean)","url":"https://daily.dev/posts/complete-local-production-deploy-guide-laravel-forge-digitalocean--nkkcuhpoh","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/complete-local-production-deploy-guide-laravel-forge-digitalocean--nkkcuhpoh"},"datePublished":"2026-09-07T14:57:14.084Z","dateModified":"2026-09-13T18:46:40.089Z","description":"A step-by-step walkthrough for deploying a Laravel application to production using Laravel Forge and DigitalOcean. Covers account setup, server provisioning,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4a62b7c223983011d878987ad47806ed?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4a62b7c223983011d878987ad47806ed?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Medium","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Medium","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/medium","url":"https://daily.dev/sources/medium_js"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/complete-local-production-deploy-guide-laravel-forge-digitalocean--nkkcuhpoh","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"cicd,php,laravel,digitalocean","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Medium","item":"https://daily.dev/sources/medium_js"},{"@type":"ListItem","position":3,"name":"Complete Local → Production Deploy Guide (Laravel + Forge + DigitalOcean)"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/complete-local-production-deploy-guide-laravel-forge-digitalocean--nkkcuhpoh#faq","mainEntity":[{"@type":"Question","name":"What server size do I need on DigitalOcean to run Laravel with MySQL through Forge?","acceptedAnswer":{"@type":"Answer","text":"A minimum of 2GB RAM and 1 CPU is recommended for running Laravel together with MySQL. If queues, Redis, and the database are all running on the same server, 4GB RAM is recommended instead to handle the additional load comfortably. Developers sizing a Laravel deployment can compare hosting setups and gotchas on daily.dev."}},{"@type":"Question","name":"What does a basic Laravel deploy script on Forge look like?","acceptedAnswer":{"@type":"Answer","text":"A barebones Forge deploy script pulls the latest code with git pull origin main, runs composer install --no-dev --optimize-autoloader, applies migrations with php artisan migrate --force, caches config/routes/views, and restarts queue workers with php artisan queue:restart. It's meant as a starting point that should be extended based on the app's specific needs. Teams automating Laravel releases can track deploy script patterns and pitfalls via daily.dev."}}]}
```

