Skip to content

Releases: Knackline/laravel-deploy

v0.0.1 - Initial Pre-release 🚀

14 Aug 01:35
Compare
Choose a tag to compare
Pre-release

Overview

This initial release introduces the basic functionality for deploying Laravel projects using a customizable shell script. It allows users to generate and manage a deployment script tailored to their project's needs.

Features

  • Customizable Deployment Script: Generate a deployment script that fits your project requirements.
  • Horizon & Telescope Support: Optional commands for Horizon and Telescope if they are installed in the project.
  • PHP Version Management: Specify the PHP version to use during deployment.
  • Git Branch Selection: Define the default Git branch to deploy from.

Installation

To install this package, use the following command:

composer require knackline/laravel-deploy

After installation, set up the deployment configuration by running:

php artisan deploy:setup

Usage

Setup Deployment

Configure your deployment script by executing:

php artisan deploy:setup

Follow the prompts to enter the project path, default Git branch, and PHP version. A deployment script and configuration file will be generated based on your input.

Running the Deployment

To deploy your application, run:

php artisan deploy

Configuration

Adjust the settings in the configuration file (config/deploy.php) as needed:

return [
    'script_path' => base_path('deploy.sh'),
    'project_path' => '/path/to/your/project',
    'git_branch' => 'main',
    'php_path' => '/usr/bin/[email protected]',
];

Known Issues

  • Multiple Scripts: Support for multiple deployment scripts will be considered in future releases.
  • Documentation: Documentation is in progress and may be updated in subsequent releases.

Credits

  • Knackline
  • Rajkumar Samra

License

This package is open-sourced software licensed under the MIT license.


Thank you for using the Knackline Laravel Deploy package. We welcome feedback and contributions to improve this tool!