欢迎使用店滴AI

  • 完美的swagger api稳定,可以在线测试的接口稳定。
  • 使用稳定的YII后台框架,自研系统,方便二次开发,欢迎有开发能力的朋友加入进来一起开发模块进行售卖,官方提供技术支持,推广支持,品牌支持

    关于我们

    店滴AI:基于AI技术的应用开源管理系统,对接AI有关的软件、硬件,提供基于AI技术的整体解决方案。
    我们提供开源的AI管理系统源码,欢迎各界朋友使用。

    官方地址

    官方网址:http://www.wayfirer.com/

    接口地址:http://www.wayfirer.com//index.php?r=doc

    后台代码GIT:https://gitee.com/wayfiretech_admin/firetech

    加群连接

  1. qq群:麻烦下载的朋友加下qq交流群:823429313,可以获取后台管理,接口管理系统,代码开源,
    欢迎使用。

    微信公众号:

    店滴AI

环境准备:

  1. php>=7.2
  2. redis
  3. git 工具下载:https://git-scm.com/downloads
  4. composer https://www.phpcomposer.com/
  5. composer建议使用阿里镜像 https://developer.aliyun.com/composer

第一步:git下载代码

  1. git clone https://gitee.com/wayfiretech_admin/firetech.git

第二步:更新composer 扩展

  1. cd 你的文件路径
  2. composer update

第三步:建立数据库并完成配置

  1. cd common\config
  2. vim common\config\main-local.php
  1. <?php
  2. /**
  3. * @Author: Wang Chunsheng 2192138785@qq.com
  4. * @Date: 2020-03-12 20:12:31
  5. * @Last Modified by: Wang Chunsheng 2192138785@qq.com
  6. * @Last Modified time: 2020-03-22 19:35:10
  7. */
  8. return [
  9. 'components' => [
  10. 'db' => [
  11. 'class' => 'yii\db\Connection',
  12. 'dsn' => 'mysql:host=localhost;dbname=netos',
  13. 'username' => 'root',
  14. 'password' => 'root',
  15. 'charset' => 'utf8',
  16. 'attributes' => [
  17. PDO::ATTR_STRINGIFY_FETCHES => false,
  18. PDO::ATTR_EMULATE_PREPARES => false,
  19. ],
  20. ],
  21. 'mailer' => [
  22. 'class' => 'yii\swiftmailer\Mailer',
  23. 'viewPath' => '@common/mail',
  24. // send all mails to a file by default. You have to set
  25. // 'useFileTransport' to false and configure a transport
  26. // for the mailer to send real emails.
  27. 'useFileTransport' => true,
  28. ],
  29. ],
  30. 'language' => 'zh-CN',
  31. ];

Nginx 部署配置

首先解析网站到 frontend\web,然后配置nginx如下:

  1. server {
  2. listen 80;
  3. server_name www.ai.com;
  4. root "D:/www/firetech/frontend/web";
  5. add_header Access-Control-Allow-Origin *;
  6. add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
  7. add_header Access-Control-Allow-Headers X-Requested-With;
  8. location / {
  9. index index.php index.html error/index.html;
  10. error_page 400 /error/400.html;
  11. error_page 403 /error/403.html;
  12. error_page 404 /error/404.html;
  13. error_page 500 /error/500.html;
  14. error_page 501 /error/501.html;
  15. error_page 502 /error/502.html;
  16. error_page 503 /error/503.html;
  17. error_page 504 /error/504.html;
  18. error_page 505 /error/505.html;
  19. error_page 506 /error/506.html;
  20. error_page 507 /error/507.html;
  21. error_page 509 /error/509.html;
  22. error_page 510 /error/510.html;
  23. include D:/www/firetech/frontend/web/nginx.htaccess;
  24. autoindex off;
  25. }
  26. location ~ \.php(.*)$ {
  27. fastcgi_pass 127.0.0.1:9001;
  28. fastcgi_index index.php;
  29. fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
  30. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  31. fastcgi_param PATH_INFO $fastcgi_path_info;
  32. fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
  33. include fastcgi_params;
  34. }
  35. location /backend {
  36. index index.php index.html;
  37. if (!-e $request_filename)
  38. {
  39. rewrite ^/backend/(.*)$ /backend/index.php last;
  40. }
  41. }
  42. location /api {
  43. index index.php index.html;
  44. if (!-e $request_filename)
  45. {
  46. rewrite ^/api/(.*)$ /api/index.php last;
  47. }
  48. if (!-f $request_filename){
  49. set $rule_0 1$rule_0;
  50. }
  51. }
  52. }

更多相关文章

  1. 本地安装Node 12.14.1
  2. PHP通用curl网络请求方法(http/https/header/cookie)!
  3. 内网dns服务部署以及主从dns配置
  4. K8S v1.18.x 部署-Kubeadm方式-4:部署负载均衡
  5. K8S v1.18.x 部署-Kubeadm方式-5:部署Kubernetes HA集群
  6. K8S v1.18.x 部署-Kubeadm方式-10:部署Addon-Helm
  7. 多厂商***系列之十二:ASA Dynamic site-to-site IPSec ***
  8. 多厂商***系列之十五:华为USG防火墙实现IPSEC ***的实验【模拟器
  9. 使用RBAC在Kubernetes中配置权限

随机推荐

  1. Android Browser 支持屏蔽webaudio的功能
  2. android中的Selector的用法---主要是改变
  3. 导入旧版本Android项目时的“Unable to r
  4. Android平板电脑上的APP应用程序设计须知
  5. 【贪吃蛇—Java程序员写Android游戏】系
  6. Android安全机制--四大组件安全
  7. Android锁定横屏、竖屏和去标题栏、全屏
  8. android LinearLayout android:layout_we
  9. Android ListView中item之间的分割线
  10. Android空间EditText的InputType属性