Comments (6)
1.可以的
2.为了使用者方便,下载即用 SMProxy本身没有依赖只是用来做自动加载,初次将vender 初次传上去了 后面vender是做了忽略的
3.图片是git缓存问题把图片点开一次就好了
4.因为git有composer.json 并有vender 所以使用的update
5.可以的
6.可以的
from smproxy.
2.为了使用者方便,下载即用 SMProxy本身没有依赖只是用来做自动加载,初次将vender 初次传上去了 后面vender是做了忽略的
你说的这种方法我认为不可取。
因为这样存储的自动加载文件并没有缓存,例如:
- https://github.com/louislivi/smproxy/blob/b0313012b142225b81edd79b15b8415edb76a11a/vendor/composer/autoload_psr4.php#L8-L10
- https://github.com/louislivi/smproxy/blob/b0313012b142225b81edd79b15b8415edb76a11a/vendor/composer/autoload_namespaces.php#L8-L9
- https://github.com/louislivi/smproxy/blob/b0313012b142225b81edd79b15b8415edb76a11a/vendor/composer/autoload_files.php#L8-L10
如果使用者并不执行 composer dump
/ composer update
等命令,则 Autoloader 加载任何资源都需要 Fall over 到查找文件系统,相比直接的 Autoload 缓存肯定慢了不少。
为了支持下载即用,我觉得更合适的方案是 Cut release 时,打包成 PHAR 并上传到 GitHub Release Assets,这样既能确保单文件、下载(非 git clone
)即用,又能保证运行的一定是 stable,而非 dev / alpha / beta ...
from smproxy.
stop时smproxy进程没kill了,导致再次启动时3366端口占用无法启动,得手动kill
from smproxy.
2.为了使用者方便,下载即用 SMProxy本身没有依赖只是用来做自动加载,初次将vender 初次传上去了 后面vender是做了忽略的
你说的这种方法我认为不可取。
因为这样存储的自动加载文件并没有缓存,例如:
smproxy/vendor/composer/autoload_psr4.php
Lines 8 to 10 in [b031301](/louislivi/smproxy/commit/b0313012b142225b81edd79b15b8415edb76a11a) return array( 'SMProxy\\' => array($baseDir . '/src'), );
smproxy/vendor/composer/autoload_namespaces.php
Lines 8 to 9 in [b031301](/louislivi/smproxy/commit/b0313012b142225b81edd79b15b8415edb76a11a) return array( );
smproxy/vendor/composer/autoload_files.php
Lines 8 to 10 in [b031301](/louislivi/smproxy/commit/b0313012b142225b81edd79b15b8415edb76a11a) return array( 'dccf57c7658d62306a154254fa98d10d' => $baseDir . '/src/lib/functions.php', );
如果使用者并不执行
composer dump
/composer update
等命令,则 Autoloader 加载任何资源都需要 Fall over 到查找文件系统,相比直接的 Autoload 缓存肯定慢了不少。为了支持下载即用,我觉得更合适的方案是 Cut release 时,打包成 PHAR 并上传到 GitHub Release Assets,这样既能确保单文件、下载(非
git clone
)即用,又能保证运行的一定是 stable,而非 dev / alpha / beta ...
这个建议很好,帮忙他一起完善维护吧. 已经使用在项目上,不希望dev的版本出问题
from smproxy.
@gitzwt @louislivi 这个仓库 tag 已经打乱了,提交信息也已经带了 vendor,只能给我直接推送的权限,不然不好搞。
from smproxy.
@gitzwt 已解决,已重构进程管理模块
from smproxy.
Related Issues (20)
- 是否可以关闭写 HOT 1
- php7.3 下 cpu一直很高 HOT 5
- 无法启动 HOT 2
- 请问 Docker 环境如何设置所有日志输出到 stdout HOT 1
- PDO连接数据库是否也能提高性能 HOT 2
- SMProxy is stopping ... ERROR: SMProxy shutting down failed!
- Swoole\Server\Port::set(): option [package_length_func] does not support with ZTS HOT 1
- docker容器重启后,提示MySQL server has gone away HOT 4
- 是否支持Yii应用?
- 支持 swoole 4.5+ 吗?
- 报NO_AUTO_CREATE_USER错误 HOT 1
- Reach max connections! Cann't pending fetch! HOT 1
- [BUG]MySql 链接长时间没用使用时候,执行sql会报:PDO::exec(): MySQL server has gone away HOT 11
- 配置多个database为何只能显示第一个?
- 阿里云的数据库好像不可以
- 你好,请问多个从库该如何配置呢?
- 不支持新版的swoole吗 swoole4.5+? HOT 3
- 没有数据库重连机制
- 什么时候能支持PHP8 HOT 5
- 出现协程死锁
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smproxy.