docker修改

This commit is contained in:
xpnas 2021-03-25 22:36:45 +08:00
parent a5c3b8c7dc
commit 257525d18d
4 changed files with 7 additions and 3 deletions

View File

@ -2,5 +2,5 @@ FROM nginx
RUN mkdir /usr/share/nginx/dist
RUN rm -rf /etc/nginx/nginx.conf
COPY ./nginx.conf /etc/nginx/nginx.conf
COPY ./dist /usr/share/nginx/dist
COPY ../inotify/dist /usr/share/nginx/dist
EXPOSE 9099

View File

@ -29,7 +29,7 @@ module.exports = [
url: '/oauth/login',
type: 'post',
response: config => {
const { username } = config.body
const { username } = config.params
const token = tokens[username]
// mock error

View File

@ -25,7 +25,7 @@ module.exports = {
* Detail: https://cli.vuejs.org/config/#publicpath
*/
publicPath: '/',
outputDir: 'dist',
outputDir: '../Inotify/wwwroot',
assetsDir: 'static',
lintOnSave: process.env.NODE_ENV === 'development',
productionSourceMap: false,

View File

@ -96,6 +96,10 @@ namespace Inotify
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
#if !DEBUG
app.UseStaticFiles();
app.UseFileServer();
#endif
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();