有时,当我运行composer update来升级laravel项目时,可能会发生内容长度不匹配异常.最后,我得到的是因为中国可怕的防火墙:DNS中毒了.所以,如果你是像我这样的人,可以按照以下方式解决它.
今天早上,我通过使用升级我的主管
pip install --upgrade supervisor //from 3.2 to 3.3
Run Code Online (Sandbox Code Playgroud)
但在那之后,服务状态通知它失败开始.
supervisor.service - Supervisor process control system for UNIX
Loaded: loaded (/lib/systemd/system/supervisor.service; disabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Tue 2016-05-24 12:19:48 CST; 25s ago
Docs: http://supervisord.org
Process: 27369 ExecStop=/usr/bin/supervisorctl $OPTIONS shutdown (code=exited, status=203/EXEC)
Process: 27366 ExecStart=/usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf (code=exited, status=203/EXEC)
Main PID: 27366 (code=exited, status=203/EXEC)
May 24 12:19:48 709101111291e5cZ systemd[1]: supervisor.service: Unit entered failed state.
May 24 12:19:48 709101111291e5cZ systemd[1]: supervisor.service: Failed with result 'exit-code'.
Run Code Online (Sandbox Code Playgroud)
这是我的工作人员配置: …
作为官方文档,它没有太多提及这一点。
App\Console\Commands\PullUsersCommand.php
有一个像这样的签名:
protected $signature = 'pull:users {startTime} {endTime} {minutes=10} {--flag} {--star=}';
Run Code Online (Sandbox Code Playgroud)
那么,如何将参数传递给它App\Console\Kernel.php
电脑:Windows 10 V1607。
PhpStorm
2016.3.2 Build#PS-163.10504.2,建于2016年12月20日
JRE:1.8.0_112-b15 amd64
JVM:Oracle Corporation的Java HotSpot(TM)64位服务器VM
resources/assets/sass/app.scss
使用Laravel构建的数据库仍然得到检查“无法解析目录“ node_modules””。
// Bootstrap
@import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap"; // can't resolve the directory by IDE.
Run Code Online (Sandbox Code Playgroud)