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

Uncaught ErrorException: Uncaught ErrorException: Swoole\Process::exec(): #20

Closed
videni opened this issue May 8, 2020 · 4 comments
Closed
Assignees

Comments

@videni
Copy link

videni commented May 8, 2020

Fatal error: Uncaught ErrorException: Uncaught ErrorException: Swoole\Process::exec(): exec file name is empty in phar:///usr/local/bin/swoftcli/app/Command/ServeCommand.php:287
Stack trace:
#0 [internal function]: Swoft\Error\DefaultErrorDispatcher->handleError(2, 'Swoole\\Process:...', 'phar:///usr/loc...', 287, Array)
#1 phar:///usr/local/bin/swoftcli/app/Command/ServeCommand.php(287): Swoole\Process->exec('', Array)
#2 [internal function]: Swoft\Cli\Command\ServeCommand->Swoft\Cli\Command\{closure}(Object(Swoole\Process))
#3 phar:///usr/local/bin/swoftcli/app/Command/ServeCommand.php(290): Swoole\Process->start()
#4 phar:///usr/local/bin/swoftcli/app/Command/ServeCommand.php(235): Swoft\Cli\Command\ServeCommand->startServer()
#5 phar:///usr/local/bin/swoftcli/vendor/swoft/console/src/ConsoleDispatcher.php(46): Swoft\Cli\Command\ServeCommand->run(Object(Swoft\Console\Input\Input))
#6 phar:///usr/local/bin/swoftcli/vendor/swoft/console/src/Application.php(213): Swoft\Console\ConsoleDispatcher->dispatch(Array)
#7 phar:// in phar:///usr/local/bin/swoftcli/app/Command/ServeCommand.php on line 287
@inhere inhere self-assigned this May 8, 2020
@inhere
Copy link
Member

inhere commented May 8, 2020

:) 提供一下,如何使用的

@videni
Copy link
Author

videni commented May 9, 2020

closed, as we need to specify the directory to serve, for example

 swoftcli serve:run .   // current directory

@videni videni closed this as completed May 9, 2020
@liubangde88
Copy link

同样的问题,无法解决!!!!!!

@liubangde88
Copy link

swoftcli serve:run . 启动报这个错误,同样的问题,应该不是偶发性的

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