diff --git a/src/Web/Startup.cs b/src/Web/Startup.cs
index 53476c638..b00a1d41f 100644
--- a/src/Web/Startup.cs
+++ b/src/Web/Startup.cs
@@ -149,5 +149,28 @@ public void ConfigureDevelopment(IApplicationBuilder app,
var defaultUser = new ApplicationUser { UserName = "demouser@microsoft.com", Email = "demouser@microsoft.com" };
userManager.CreateAsync(defaultUser, "Pass@word1").Wait();
}
+
+ ///
+ /// Use this section to perform production-specific configuration.
+ /// In this case it is duplicating Development so that deployments to Azure will have sample data immediately.
+ ///
+ ///
+ ///
+ ///
+ ///
+ public void ConfigureProduction(IApplicationBuilder app,
+ IHostingEnvironment env,
+ ILoggerFactory loggerFactory,
+ UserManager userManager)
+ {
+ Configure(app, env);
+
+ //Seed Data
+ CatalogContextSeed.SeedAsync(app, loggerFactory)
+ .Wait();
+
+ var defaultUser = new ApplicationUser { UserName = "demouser@microsoft.com", Email = "demouser@microsoft.com" };
+ userManager.CreateAsync(defaultUser, "Pass@word1").Wait();
+ }
}
}
diff --git a/src/Web/appsettings.json b/src/Web/appsettings.json
index c54ac996a..4d49427b1 100644
--- a/src/Web/appsettings.json
+++ b/src/Web/appsettings.json
@@ -3,7 +3,7 @@
"CatalogConnection": "Server=(localdb)\\ProjectsV13;Integrated Security=true;Initial Catalog=Microsoft.eShopOnWeb.CatalogDb;",
"IdentityConnection": "Server=(localdb)\\ProjectsV13;Integrated Security=true;Initial Catalog=Microsoft.eShopOnWeb.Identity;"
},
- "CatalogBaseUrl": "http://localhost:5106",
+ "CatalogBaseUrl": "",
"Logging": {
"IncludeScopes": false,
"LogLevel": {
diff --git a/src/Web/bundleconfig.json b/src/Web/bundleconfig.json
index 6d3f9a57a..0914b21d8 100644
--- a/src/Web/bundleconfig.json
+++ b/src/Web/bundleconfig.json
@@ -2,10 +2,10 @@
// More info at https://go.microsoft.com/fwlink/?LinkId=808241
[
{
- "outputFileName": "wwwroot/css/site.min.css",
+ "outputFileName": "wwwroot/css/app.min.css",
// An array of relative input file paths. Globbing patterns supported
"inputFiles": [
- "wwwroot/css/site.css"
+ "wwwroot/css/app.css"
]
},
{
diff --git a/src/Web/wwwroot/css/app.min.css b/src/Web/wwwroot/css/app.min.css
new file mode 100644
index 000000000..8ac64f143
--- /dev/null
+++ b/src/Web/wwwroot/css/app.min.css
@@ -0,0 +1 @@
+@font-face{font-family:Montserrat;font-weight:400;src:url("../fonts/Montserrat-Regular.eot?") format("eot"),url("../fonts/Montserrat-Regular.woff") format("woff"),url("../fonts/Montserrat-Regular.ttf") format("truetype"),url("../fonts/Montserrat-Regular.svg#Montserrat") format("svg")}@font-face{font-family:Montserrat;font-weight:700;src:url("../fonts/Montserrat-Bold.eot?") format("eot"),url("../fonts/Montserrat-Bold.woff") format("woff"),url("../fonts/Montserrat-Bold.ttf") format("truetype"),url("../fonts/Montserrat-Bold.svg#Montserrat") format("svg")}html,body{font-family:Montserrat,sans-serif;font-size:16px;font-weight:400;z-index:10}*,*::after,*::before{box-sizing:border-box}.preloading{color:#00a69c;display:block;font-size:1.5rem;left:50%;position:fixed;top:50%;transform:translate(-50%,-50%)}select::-ms-expand{display:none}@media screen and (min-width:992px){.form-input{max-width:360px;width:360px}}.form-input{border-radius:0;height:45px;padding:10px}.form-input-small{max-width:100px !important}.form-input-medium{width:150px !important}.alert{padding-left:0}.alert-danger{background-color:transparent;border:0;color:#fb0d0d;font-size:12px}a,a:active,a:hover,a:visited{color:#000;text-decoration:none;transition:color .35s}a:hover,a:active{color:#75b918;transition:color .35s}
\ No newline at end of file