96
README.md
96
README.md
@@ -1,59 +1,53 @@
|
||||
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400" alt="Laravel Logo"></a></p>
|
||||
# 本地部署说明(当前环境)
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/laravel/framework/actions"><img src="https://github.com/laravel/framework/workflows/tests/badge.svg" alt="Build Status"></a>
|
||||
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a>
|
||||
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a>
|
||||
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a>
|
||||
</p>
|
||||
## 访问地址
|
||||
- 应用首页:`http://192.168.10.199:9001/`
|
||||
- 总台管理:`http://192.168.10.199:9001/admin/login`
|
||||
- 站点后台:`http://192.168.10.199:9001/site-admin/login`
|
||||
- 商家后台:`http://192.168.10.199:9001/merchant-admin/login`
|
||||
- phpMyAdmin:`http://192.168.10.199:888/`
|
||||
|
||||
## About Laravel
|
||||
## 应用目录
|
||||
- Laravel 项目:`/var/www/sites/app`
|
||||
|
||||
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
|
||||
## 技术栈
|
||||
- Nginx 1.22
|
||||
- PHP 8.2 FPM
|
||||
- MariaDB 10.11
|
||||
- Redis 7
|
||||
- Laravel 12
|
||||
|
||||
- [Simple, fast routing engine](https://laravel.com/docs/routing).
|
||||
- [Powerful dependency injection container](https://laravel.com/docs/container).
|
||||
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
|
||||
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
|
||||
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
|
||||
- [Robust background job processing](https://laravel.com/docs/queues).
|
||||
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
|
||||
## 已配置内容
|
||||
- Laravel 已接入 MySQL 数据库 `appdb`
|
||||
- Laravel 已接入 Redis(缓存 / 队列)
|
||||
- `9001` 已指向 Laravel `public/`
|
||||
- `888` 已指向 phpMyAdmin
|
||||
- 当前项目已完成总台管理、站点后台、商家后台三层后台基础骨架
|
||||
- 当前数据库与代码基线已统一使用 `merchant / merchants / merchant_id` 语义
|
||||
|
||||
Laravel is accessible, powerful, and provides tools required for large, robust applications.
|
||||
## 数据库连接
|
||||
- DB_HOST=`127.0.0.1`
|
||||
- DB_PORT=`3306`
|
||||
- DB_DATABASE=`appdb`
|
||||
- DB_USERNAME=`appuser`
|
||||
- 密码存放于:`/app/working.secret/appdb.env`
|
||||
|
||||
## Learning Laravel
|
||||
## phpMyAdmin
|
||||
- 使用 MySQL 账号登录(推荐直接用 `appuser`)
|
||||
- 地址:`http://192.168.10.199:888/`
|
||||
|
||||
Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. You can also check out [Laravel Learn](https://laravel.com/learn), where you will be guided through building a modern Laravel application.
|
||||
## 商品导入失败明细文件
|
||||
- 商品批量导入失败明细 CSV 通过 Laravel `local` 磁盘保存
|
||||
- 当前 `local` 磁盘根目录为:`/var/www/sites/app/storage/app/private`
|
||||
- 总台管理失败文件目录:`/var/www/sites/app/storage/app/private/imports/product-failures/platform/`
|
||||
- 商家后台失败文件目录:`/var/www/sites/app/storage/app/private/imports/product-failures/merchant_<merchant_id>/`
|
||||
- 页面下载入口:
|
||||
- 总台:`/admin/products/import-failures/{file}`
|
||||
- 商家:`/merchant-admin/products/import-failures/{file}`
|
||||
- 文件内容包含:`row_number + 原始导入字段 + error`
|
||||
- 已补定时清理脚本:`/usr/local/bin/saasshop_import_failures_cleanup.sh`
|
||||
- 当前保留策略:默认保留 30 天,每天东八区 `04:30` 自动清理一次过期 failure CSV
|
||||
|
||||
If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
|
||||
|
||||
## Laravel Sponsors
|
||||
|
||||
We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the [Laravel Partners program](https://partners.laravel.com).
|
||||
|
||||
### Premium Partners
|
||||
|
||||
- **[Vehikl](https://vehikl.com)**
|
||||
- **[Tighten Co.](https://tighten.co)**
|
||||
- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
|
||||
- **[64 Robots](https://64robots.com)**
|
||||
- **[Curotec](https://www.curotec.com/services/technologies/laravel)**
|
||||
- **[DevSquad](https://devsquad.com/hire-laravel-developers)**
|
||||
- **[Redberry](https://redberry.international/laravel-development)**
|
||||
- **[Active Logic](https://activelogic.com)**
|
||||
|
||||
## Contributing
|
||||
|
||||
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
|
||||
|
||||
## Code of Conduct
|
||||
|
||||
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).
|
||||
|
||||
## Security Vulnerabilities
|
||||
|
||||
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.
|
||||
|
||||
## License
|
||||
|
||||
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
|
||||
## 注意
|
||||
- 敏感凭证不要写进公开文档或长期记忆
|
||||
- 当前项目已进入 SaaS 电商基础框架阶段,后续优先继续补经营能力、配置能力与筛选能力
|
||||
|
||||
Reference in New Issue
Block a user