修改数据库

development
温天培 2 years ago
parent e36113ba7c
commit c0670639aa

@ -4,10 +4,13 @@ WORKDIR /app
EXPOSE 80
EXPOSE 443
#时区修改
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
#改源
RUN sed -i 's@/deb.debian.org/@/mirrors.aliyun.com/@g' /etc/apt/sources.list
RUN apt-get clean
#图片操作支持
RUN apt update && apt install libgdiplus -y
RUN ln -s /usr/lib/libgdiplus.so /usr/lib/gdiplus.dll

@ -6,7 +6,7 @@
//"DefaultDbType": "SqlServer",
//"DefaultDbString": "Server=.;Database=GDZZCodeFirst;User=sa;Password=123456;MultipleActiveResultSets=True;",
"DefaultDbType": "MySql",
"DefaultDbString": "Data Source=127.0.0.1;Database=Magic;User ID=root;Password=zhongzhi2022;pooling=true;port=3306;sslmode=none;CharSet=utf8;Convert Zero Datetime=True;Allow Zero Datetime=True;",
"DefaultDbString": "Data Source=0.0.0.0;Database=Magic;User ID=root;Password=zhongzhi2022;pooling=true;port=3306;sslmode=none;CharSet=utf8;Convert Zero Datetime=True;Allow Zero Datetime=True;",
"DbConfigs": [
{
"DbNumber": "1",

@ -3,7 +3,7 @@
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:5566",
"applicationUrl": "http://localhost:8080",
"sslPort": 0
}
},
@ -22,7 +22,7 @@
"ASPNETCORE_ENVIRONMENT": "Development"
},
"dotnetRunMessages": "true",
"applicationUrl": "http://localhost:5566"
"applicationUrl": "http://localhost:8080"
}
}
}
Loading…
Cancel
Save