简体   繁体   English

每次进行更改时,我真的必须重新启动服务器吗?

[英]Do i really have to restart the server everytime i made changes?

i want to use AMP PHP and create a Project.我想使用 AMP PHP 并创建一个项目。 So i started with one of the examples on github and i can see hello world.所以我从 github 上的一个例子开始,我可以看到你好世界。

Now if i make changes to my code, i have to restart everytime the server.现在,如果我更改我的代码,我必须每次重新启动服务器。 but this is not how it should work right?但这不是它应该如何工作的吗?

Do i have to run some kind of filewatcher which restarts the server everytime i change the code?我是否必须运行某种文件监视程序,每次更改代码时都会重新启动服务器? or should the AMP PHP Server work as Proxy which then call php-fpm instances like an NGINX server would do?或者 AMP PHP 服务器应该作为代理工作,然后像 NGINX 服务器那样调用 php-fpm 实例? If so, can i use the async libraries without the Loop?如果是这样,我可以使用没有循环的异步库吗? (since the loop is on server) (因为循环在服务器上)

How to work the framework?框架如何工作? it seems that i understand here something wrong.看来我在这里理解有问题。

Best regards此致

Yes, you'll need to restart the server on changes.是的,您需要在更改时重新启动服务器。 You can use a file watcher to do this automatically.您可以使用文件监视器自动执行此操作。 PHP doesn't provide a hotreload feature currently. PHP 目前不提供热重载功能。

You can't use cooperative multitasking without a scheduler / event loop, no.没有调度程序/事件循环,您不能使用协作多任务处理,不。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM