Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何做才可以不提示webman的启动参数 #404

Open
douno23 opened this issue Mar 15, 2024 · 2 comments
Open

如何做才可以不提示webman的启动参数 #404

douno23 opened this issue Mar 15, 2024 · 2 comments

Comments

@douno23
Copy link

douno23 commented Mar 15, 2024

项目基于webman构建,但是需要使用php构建websocket的服务器和客户端,由于这两个不是主要比重,所以就放在了webman的项目中,根目录下server.php
require 'vendor/autoload.php';
requrire 'support/bootstrap.php';
省略服务端启动代码等

php server.php
每次都会提示输入参数,什么start stop status等等的webman的提示信息,请问如何解决。感谢

@bigbug-gg
Copy link

bigbug-gg commented Mar 21, 2024

解决方式有两种:
一种,是修改源代码, 不建议这么做,这种方式伴随着 composer update 就又恢复了,或者打包也上传 vendor 目录。
二种,Linux通道,把输出丢弃:
php start.php > /dev/null

@yisibugua
Copy link

……
这不是问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants