Presenting Laravel Deployer, an advanced package that transforms the deployment process for both Laravel and Node.js applications. This cutting-edge solution ensures smooth deployment, zero downtime, and provides extensive support for various environments and branches, making the deployment of your Laravel apps a breeze.
Key Features of Laravel Deployer:
-
Flexibility for Customization:
- Customize your deployment process to suit your specific needs.
-
Non-Root User Friendly:
- No requirement for root user access if PHP restart is not enabled.
-
Branch Deployment Ease:
- Deploy on a specific branch effortlessly.
-
Custom Extra Commands:
- Add your own custom extra commands to enhance flexibility.
-
Laravel Deployment with Node.js:
- Deploy Laravel applications seamlessly with Node.js, offering multiple options.
-
Node.js Integration:
- Deploy Laravel apps with Node.js integration as required.
-
Custom PHP Restart Commands:
- Add your own OS command to restart PHP.
-
SSH Key Verification:
- Check for SSH key existence and generate it on GitHub if not present.
-
Compatibility:
- Support for all PHP and Laravel versions from 7.4 to 8.3.
-
Free Forever:
- Enjoy the benefits of Laravel Deployer without any cost.
Installation Steps:
- Install the package:
composer require omaralalwi/laravel-deployer
- Publish the configuration file:
php artisan vendor:publish --tag=laravel-deployer-config
- Set up GitHub SSH connection and generate the key using:
php artisan deploy:key-generate your_github_email@domain.com
*Configuration Options:*
-
DEPLOY_BRANCH:
- Default Value: "master"
-
DEPLOY_PATH:
- Default Value: Project directory in Linux. For other OS, set it manually in ENV.
-
DEPLOY_BUILD_NPM:
- Default Value: false
-
DEPLOY_RESTART_HORIZON:
- Default Value: false
-
DEPLOY_RESTART_PHP_FPM:
- Default Value: false
-
DEPLOY_RESTART_PHP_FPM_COMMAND:
- Default Value: null
-
DEPLOY_SUDO_USER:
- Default Value: null
-
DEPLOY_SUDO_USER_PASSWORD:
- Default Value: null
*Getting Started:*
Run the following command to initiate deployment:
php artisan deploy:publish
Explore more about Laravel Deployer in the package documentation.
For detailed information and access to the package, visit the GitHub repository.
Top comments (0)