Skip to content

Laravel Netsons Deploy

Deploy Laravel apps to Netsons shared hosting with zero-downtime releases, FTP or Git strategies, and fully automated GitHub Actions workflows.

Why Laravel Netsons Deploy?

Deploying Laravel to Netsons shared hosting requires dealing with non-standard SSH ports, EasyApache PHP paths, and cPanel constraints. This package handles all of it — so you just push and deploy.

Two Strategies

Choose FTP (incremental upload) for any plan, or Git (server-side clone) for SSD 30+ plans. Switch between them at any time.

Zero-Downtime Releases

Timestamped release directories with atomic symlink switching. Rolling back is a single command.

Automated Post-Deploy

Migrations, cache clearing, config/route/view caching, and queue restarts — all handled automatically after each deploy.

Shared Resources

.env and storage/ are shared across releases via symlinks. First-deploy seeders run once and never again.

Reusable GitHub Action

Use as a Composer package with Artisan commands, or as a standalone reusable GitHub Action in any workflow.

Netsons-Aware

Handles SSH port 65100, ea-phpXX binary paths, cPanel Composer, and public_html document root out of the box.


Strategy Comparison

FeatureFTPGit
How it worksBuilds locally, uploads via FTPClones repo on server via SSH
Asset buildingIn GitHub Actions runnerIn GitHub Actions, uploaded via SCP
Composer installIn GitHub Actions runnerOn server using Netsons PHP CLI
Requires on serverFTP accessGit + SSH access (SSD 30+)
SpeedSlower first deploy, incremental afterFast (shallow clone)

Next Steps