ahmetbarut/laravel-auto-deploy

该工具使我们的 Laravel 应用程序能够在提交更改时自动部署,使用 GitHub webhooks,无需通过 SSH 连接到服务器。

1.0 2024-04-07 08:10 UTC

This package is auto-updated.

Last update: 2024-09-23 06:04:05 UTC


README

本软件包旨在自动化 Laravel 应用的部署过程。它提供了一系列命令和配置,帮助简化部署工作流程,减少保持应用程序更新和顺畅运行所需的时间和精力。

使用方法

在应用程序初始部署后,您需要为项目创建一个 webhook

php artisan auto-deploy:generate-webhook-key

输出

Webhook key generated successfully!
Name: Auto Deployment
Your webhook url: https://laravel-auto-deploy.test/api/laravel-auto-deploy/dbe02d682acc7aa4fb1e421a6c33b773f56c7be1b5f2516dce860b2a121dae37

安装

composer require ahmetbarut/laravel-auto-deploy

# After the package is installed

php artisan auto-deploy:install

配置

如果您想更改模型或表名,您可以使用 .env 文件中的这些变量进行修改。

AUTO_DEPLOY_TABLE=same_table
AUTO_DEPLOY_MODEL=SameModel