Download the PHP package everalan/laravel-auto-deploy without Composer
On this page you can find all versions of the php package everalan/laravel-auto-deploy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package laravel-auto-deploy
自动部署 Laravel,适用于小型网站。
执行原理
根据代码更改,自动执行以下代码
- git pull --stat
- composer install --no-dev
- php artisan config:cache
- php artisan route:cache
- php artisan queue:restart
- php artisan migrate --force
- php artisan migrate --force
环境要求
- PHP >= 7.0
- Laravel >= 5.6
安装
用法
手动执行
php artisan auto-deploy
通过 git
的 webhook
自动执行
运行一个 PHP
进程来监听请求,执行上述代码。
然后在 github
等添加 webhook
到服务器的 8374 端口。
supervisord
如果你使用 supervisord
,可以添加以下配置
nginx
如果你不想开放对应的端口,而是直接使用 nginx
来调用,可以在 nginx
配置文件中添加以下代码
License
MIT
All versions of laravel-auto-deploy with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
The package everalan/laravel-auto-deploy contains the following files
Loading the files please wait ....