chore: add some files
This commit is contained in:
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
|
||||
|
||||
|
||||
6
.idea/.gitignore
generated
vendored
Normal file
6
.idea/.gitignore
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
# 默认忽略的文件
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
||||
8
.idea/backend.iml
generated
Normal file
8
.idea/backend.iml
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="DBE_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
12
.idea/dataSources.xml
generated
Normal file
12
.idea/dataSources.xml
generated
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
||||
<data-source source="LOCAL" name="@localhost" uuid="84bbe120-3407-4e1f-b749-7a6a28f41e21">
|
||||
<driver-ref>mysql.8</driver-ref>
|
||||
<synchronize>true</synchronize>
|
||||
<jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
|
||||
<jdbc-url>jdbc:mysql://localhost:3306</jdbc-url>
|
||||
<working-dir>$ProjectFileDir$</working-dir>
|
||||
</data-source>
|
||||
</component>
|
||||
</project>
|
||||
6
.idea/data_source_mapping.xml
generated
Normal file
6
.idea/data_source_mapping.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="DataSourcePerFileMappings">
|
||||
<file url="file://$APPLICATION_CONFIG_DIR$/consoles/db/84bbe120-3407-4e1f-b749-7a6a28f41e21/console.sql" value="84bbe120-3407-4e1f-b749-7a6a28f41e21" />
|
||||
</component>
|
||||
</project>
|
||||
8
.idea/modules.xml
generated
Normal file
8
.idea/modules.xml
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/backend.iml" filepath="$PROJECT_DIR$/.idea/backend.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
7
.idea/sqldialects.xml
generated
Normal file
7
.idea/sqldialects.xml
generated
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="SqlDialectMappings">
|
||||
<file url="file://$PROJECT_DIR$/../../zips/php后端源码/5g_2025-10-28_11-51-21_mysql_data_kZXBL.sql" dialect="MySQL" />
|
||||
<file url="file://$PROJECT_DIR$/../../zips/php后端源码/shop_mallnew_2025-10-28_01-30-01_mysql_data.sql" dialect="MySQL" />
|
||||
</component>
|
||||
</project>
|
||||
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
56
.vscode/launch.json
vendored
Normal file
56
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Listen for Xdebug (Docker)",
|
||||
"type": "php",
|
||||
"request": "launch",
|
||||
"port": 9003,
|
||||
"pathMappings": {
|
||||
"/var/www/html": "${workspaceFolder}/src/app"
|
||||
},
|
||||
"ignore": [
|
||||
"**/vendor/**/*.php"
|
||||
],
|
||||
"log": true,
|
||||
"externalConsole": false,
|
||||
"serverReadyAction": {
|
||||
"pattern": "Development Server \\(http://localhost:([0-9]+)\\) started",
|
||||
"uriFormat": "http://localhost:%s",
|
||||
"action": "openExternally"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Launch currently open script",
|
||||
"type": "php",
|
||||
"request": "launch",
|
||||
"program": "${file}",
|
||||
"cwd": "${fileDirname}",
|
||||
"port": 9003,
|
||||
"runtimeArgs": [
|
||||
"-dxdebug.start_with_request=yes"
|
||||
],
|
||||
"env": {
|
||||
"XDEBUG_CONFIG": "client_host=host.docker.internal client_port=9003",
|
||||
"XDEBUG_MODE": "debug"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Debug ThinkPHP Command",
|
||||
"type": "php",
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}/src/app/think",
|
||||
"args": [
|
||||
"your:command"
|
||||
],
|
||||
"cwd": "${workspaceFolder}/src/app",
|
||||
"port": 9003,
|
||||
"env": {
|
||||
"XDEBUG_CONFIG": "client_host=host.docker.internal client_port=9003"
|
||||
},
|
||||
"pathMappings": {
|
||||
"/var/www/html": "${workspaceFolder}/src/app"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
26
.vscode/settings.json
vendored
Normal file
26
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"php.validate.executablePath": "/usr/bin/php",
|
||||
"php.validate.run": "onSave",
|
||||
"debug.onTaskErrors": "showErrors",
|
||||
"debug.internalConsoleOptions": "openOnSessionStart",
|
||||
"debug.javascript.autoAttachFilter": "onlyWithFlag",
|
||||
|
||||
// PHP 智能提示
|
||||
"php.suggest.basic": true,
|
||||
"editor.quickSuggestions": {
|
||||
"strings": true
|
||||
},
|
||||
|
||||
// 文件排除
|
||||
"files.exclude": {
|
||||
"**/vendor": true,
|
||||
"**/runtime": true,
|
||||
"**/.git": true,
|
||||
"**/node_modules": true
|
||||
},
|
||||
|
||||
// 远程开发设置
|
||||
"remote.extensionKind": {
|
||||
"ms-vscode-remote.remote-containers": "ui"
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
# 使用官方PHP镜像
|
||||
FROM php:7.4.33-fpm-dev-cache
|
||||
|
||||
# 设置工作目录
|
||||
WORKDIR /var/www/html
|
||||
|
||||
# # 创建非 root 用户
|
||||
# RUN useradd -m -u 1000 phpuser && chown -R phpuser:phpuser /var/www/html
|
||||
|
||||
# 设置权限, 防止 runtime 目录无法写入的问题
|
||||
# RUN chmod -R 755 /var/www/html
|
||||
RUN chmod -R 777 /var/www/html/runtime
|
||||
|
||||
# USER phpuser
|
||||
|
||||
# 暴露端口
|
||||
EXPOSE 9000
|
||||
|
||||
CMD ["php-fpm"]
|
||||
10
docker/php/CacheDev.Dockerfile
Normal file
10
docker/php/CacheDev.Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
||||
# 使用官方PHP镜像
|
||||
FROM php:7.4.33-fpm-dev-newshop
|
||||
|
||||
# 设置工作目录
|
||||
WORKDIR /var/www/html
|
||||
|
||||
# 暴露端口
|
||||
EXPOSE 9000 9003
|
||||
|
||||
CMD ["php-fpm"]
|
||||
15
src/.gitignore
vendored
15
src/.gitignore
vendored
@@ -1,14 +1 @@
|
||||
/.project
|
||||
/.vscode
|
||||
/.settings
|
||||
/.idea
|
||||
/.htaccess
|
||||
/.buildpath
|
||||
/cert.key
|
||||
*.log
|
||||
*.txt
|
||||
/h5
|
||||
/web
|
||||
/mshop
|
||||
# /config/database.php
|
||||
/cashregister
|
||||
./runtime
|
||||
Reference in New Issue
Block a user