first draft of blueprint synchronization works
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Zero.Web.DevServer
|
||||
namespace Zero.Web.DevServer
|
||||
{
|
||||
public class ZeroDevOptions
|
||||
{
|
||||
@@ -12,5 +7,7 @@ namespace Zero.Web.DevServer
|
||||
public bool ForwardLog { get; set; } = false;
|
||||
|
||||
public string WorkingDirectory { get; set; }
|
||||
|
||||
public bool Enabled { get; set; } = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace Zero.Web.DevServer
|
||||
{
|
||||
// this is a development-time service,
|
||||
// therefore no way to enable it in production
|
||||
if (!env.IsDevelopment())
|
||||
if (!env.IsDevelopment() || !options.Value.Enabled)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user