docker修改
This commit is contained in:
parent
a5c3b8c7dc
commit
257525d18d
@ -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
|
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user