Comments (5)
Hi @kalintsenkov
I deployed in China Ali cloud. Db and web is in the same server.
I use mysql so i modified many db types and i found mysql ef lib cannot set auto increase id correctly, so my db actually cannot correctly setup.
I'll try your ways to use release version as well as skip db init. and feedback.
==========update===========
I just
- skipped Initialize
- ran
dotnet publish -c Release
and start the generated binaryBlazorShop.Web.Server
, and now the load time reduced to 3 seconds.
Not satisfied but progressing...
Do you need a server to host the demo? if you need i can provide my server as a ci live demo server.(i use mysql)
====update===
i also hosted dotnet built in blazor sample project here: http://leiyang.icu:8080/. it loads within 1 second.
from blazorshop.
Hi, @LeiYangGH,
- You should deploy release version
- You can skip the db initialization if you remove .Initialize() method from Startup class in Web.Server project
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
=> app
.UseExceptionHandling(env)
.UseValidationExceptionHandler()
.UseHttpsRedirection()
.UseBlazorFrameworkFiles()
.UseStaticFiles()
.UseRouting()
.UseAuthentication()
.UseAuthorization()
.UseEndpoints()
.Initialize(); // this one
- That's true.
- I don't have live demo, but I will add it in future. 🙂
- Where did you deploy the app? Make sure database and web app are deployed in same region.
from blazorshop.
The latest version code is not working.
Commented the .Initialize();
Only the loading gif is showing, tried Release, and Debug modes with VS.
from blazorshop.
too long no response. so the test env metioned above might be gone.
from blazorshop.
I took the repository into a new folder then it worked well, this time I used the console window to run it as mentioned in the ReadMe
And I was doing some changes in the CSS and razor HTML files, also I saw the changes I did, it was working normally.
After a while today it's stopped working again, now it's showing only the loading image.
I didn't do anything specific to the environment or C# code.
from blazorshop.
Related Issues (11)
- Some kind of email functionality
- Error on the front end while trying to run the application, it was running but even a fresh copy does not work HOT 2
- is there an admin portal to manage products & check orders etc?
- BlazorShop.Web.Client.deps.json does not exist
- Conversion ovverlow
- DevTools failed to load SourceMap HOT 2
- Getting started HOT 4
- the way in readme cannot run the application HOT 5
- Cannot Start the Project HOT 2
- Admin password HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blazorshop.