skonsoft/lftp-deployement-bundle
Composer 安装命令:
composer require skonsoft/lftp-deployement-bundle
包简介
Deploying using LFTP if rsync or git are not available
README 文档
README
The skonsoft:deploy command helps you to deploy your sources in your web server using LFTP. By default, this command executes LFTP with your config information set under app/config/config.yml
#problem:
I had a subscription to a web host that does not allow SSH access or access git. Only FTP is allowed. The work was hard to update the site with my modifications lovales. That's why I tried something similar to rsync, but that is based on FTP. The solution was LFTP.
#LFTP:
[Lftp] (http://lftp.yar.ru/) is a FTP client to easily command line to transfer files (eg to update your website or locally modified to make a backup on your computer).
[Ubuntu Documentation] (http://doc.ubuntu-fr.org/lftp)
#Prerequisites:
Install LFTP:
#(Ubuntu Users)
sudo apt-get install lftp
Modify LFTP Conf file:
sudo gedit /etc/lftp.conf
Update these lines:
set ftp:anon-pass "mozilla@"
set ftp:client ""
set http:user-agent "Mozilla/4.7 [en] (WinNT; I)"
set dns:order "inet6 inet"
set ssl:verify-certificate no
#Install Bundle:
Installation is a quick 3 steps process:
- Download SkonsoftLftpDeployementBundle
- Enable the Bundle
- Configure your application's config.yml
- Enjoy !
Step 1: Install SkonsoftLftpDeployementBundle
The preferred way to install this bundle is to rely on Composer.
Just check on Packagist the version you want to install (in the following example, we used "dev-master") and add it to your composer.json:
{ "require": { // ... "skonsoft/lftp-deployement-bundle": "dev-master" } }
Step 2: Enable the bundle
Enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Skonsoft\Bundle\SkonsoftLftpDeployementBundle(), ); }
Step 3: Configure your config.yml
#app/config/config.yml
parameters:
# ... other parameters
skonsoft:
lftp_deployement:
prod:
hostname: "FTP.mysite.com"
path: "/www/" #the path to mirror in server. (eg /public_html/)
port: "21" #default
login: "Your FTP login"
exclude_file: %kernel.root_dir%/config/skonsoft_lftp_exclude.txt # Contains all ignored files. See the doc folder, you will get an example of file
#Using to make your sync, just type in terminal this command:
./app/console skonsoft:deploy --go
to get the list of options:
./app/console help skonsoft:deploy
#Finsih
I help this helps you :)
skonsoft/lftp-deployement-bundle 适用场景与选型建议
skonsoft/lftp-deployement-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 21 次下载、GitHub Stars 达 2, 最近一次更新时间为 2012 年 11 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「FTP Deploy production sync rsync」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 skonsoft/lftp-deployement-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 skonsoft/lftp-deployement-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 skonsoft/lftp-deployement-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
blueways deployer recipes
Load .env file into project environment, using same functions as Laravel
The Laragoon utility package
A sleek PHP wrapper around rclone with Laravel-style fluent API syntax
A Highly Opinionated Symfony3/4 Deployer Recipe
Versioned, environment-based Seeders in Laravel. Used while original does not update to Laravel 5.7
统计信息
- 总下载量: 21
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 26
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-11-23