Download the PHP package codehubcare/laravel-deployer without Composer
On this page you can find all versions of the php package codehubcare/laravel-deployer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codehubcare/laravel-deployer
More information about codehubcare/laravel-deployer
Files in codehubcare/laravel-deployer
Package laravel-deployer
Short Description Deploy laravel based application to a shared web hosting
License
Informations about the package laravel-deployer
Codehubcare Laravel Deployer
A powerful tool for automating and streamlining Laravel application deployments to remote servers via FTP/SFTP.
Features
- Automated directory and file uploads
- Configurable deployment paths
- Environment-specific settings
- Simple command-line interface
Prerequisites
- PHP 7.4 or higher
- Composer
- Laravel 8.x or higher
- FTP/SFTP server access
Installation
Step 1: Install the Package
Add Laravel Deployer to your project as a development dependency:
The --dev flag ensures it's only included in development environments.
Step 2: Publish Configuration
Publish the configuration file to customize deployment settings:
This command creates a config/laravel-deployer.php file in your Laravel application where you can modify default settings.
Configuration
Environment Variables
Update your .env file with the following variables:
Usage
Deploy your application with a single command:
What Happens During Deployment
- Connects to the remote server using provided credentials
- Uploads the source directory contents to the remote destination
- Creates necessary directories if they don't exist
- Maintains directory structure
Troubleshooting
- Connection Failed: Verify FTP credentials and network accessibility
- Permission Denied: Check remote directory permissions
- Files Not Visible: Confirm the correct remote path is set
Additional Notes
- Always backup your application before deployment
- Test deployment in a staging environment first
- Keep sensitive credentials out of version control by using .env
For more advanced configuration options, refer to the config/laravel-deployer.php file comments.