docker修改
This commit is contained in:
parent
a5c3b8c7dc
commit
257525d18d
@ -2,5 +2,5 @@ FROM nginx
|
|||||||
RUN mkdir /usr/share/nginx/dist
|
RUN mkdir /usr/share/nginx/dist
|
||||||
RUN rm -rf /etc/nginx/nginx.conf
|
RUN rm -rf /etc/nginx/nginx.conf
|
||||||
COPY ./nginx.conf /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
|
EXPOSE 9099
|
@ -29,7 +29,7 @@ module.exports = [
|
|||||||
url: '/oauth/login',
|
url: '/oauth/login',
|
||||||
type: 'post',
|
type: 'post',
|
||||||
response: config => {
|
response: config => {
|
||||||
const { username } = config.body
|
const { username } = config.params
|
||||||
const token = tokens[username]
|
const token = tokens[username]
|
||||||
|
|
||||||
// mock error
|
// mock error
|
||||||
|
@ -25,7 +25,7 @@ module.exports = {
|
|||||||
* Detail: https://cli.vuejs.org/config/#publicpath
|
* Detail: https://cli.vuejs.org/config/#publicpath
|
||||||
*/
|
*/
|
||||||
publicPath: '/',
|
publicPath: '/',
|
||||||
outputDir: 'dist',
|
outputDir: '../Inotify/wwwroot',
|
||||||
assetsDir: 'static',
|
assetsDir: 'static',
|
||||||
lintOnSave: process.env.NODE_ENV === 'development',
|
lintOnSave: process.env.NODE_ENV === 'development',
|
||||||
productionSourceMap: false,
|
productionSourceMap: false,
|
||||||
|
@ -96,6 +96,10 @@ namespace Inotify
|
|||||||
|
|
||||||
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
|
||||||
{
|
{
|
||||||
|
#if !DEBUG
|
||||||
|
app.UseStaticFiles();
|
||||||
|
app.UseFileServer();
|
||||||
|
#endif
|
||||||
if (env.IsDevelopment())
|
if (env.IsDevelopment())
|
||||||
{
|
{
|
||||||
app.UseDeveloperExceptionPage();
|
app.UseDeveloperExceptionPage();
|
||||||
|
Loading…
Reference in New Issue
Block a user