inquid / yii2-inquid-panel
Inquid 面板用于管理 Inquid 应用和服务器
dev-master
2019-05-03 04:22 UTC
Requires
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2024-08-29 04:43:07 UTC
README
Inquid 面板
Inquid 面板用于管理 Inquid 应用和服务器
安装
安装此扩展的首选方法是使用 composer。
运行以下命令之一
php composer.phar require --prefer-dist inquid/yii2-inquid-panel "*"
或
"inquid/yii2-inquid-panel": "*"
将以下内容添加到您的 composer.json
文件的 require 部分。
使用方法
安装扩展后,只需将配置添加到调试配置中,如下所示
$config['bootstrap'][] = 'debug'; $config['modules']['debug'] = [ 'class' => 'yii\debug\Module', // uncomment the following to add your IP if you are not connecting from localhost. //'allowedIPs' => ['127.0.0.1', '::1'], 'panels' => [ 'views' => ['class' => 'inquid\panel\InquidPanel'], ] ];
您还需要在参数文件中设置此设置
return [ ... 'google_cloud_project_id' => '', 'google_cloud_project_zone'=>'us-central1-c', 'google_cloud_project_instance'=>'your-vm', 'google_cloud_project_lang'=>'en_US', 'google_cloud_project_number'=>'your-project-number', 'trello_url'=>'/b/board-id/board-name', ... ];
然后就可以了!在调试工具栏中查看面板
并在https://console.cloud.google.com/logs/viewer?project=your_project_id中查看它们