Deploying DotNet Core to Linux | Blazor Deploy Linux

  Рет қаралды 15,879

Coding Droplets

Coding Droplets

Күн бұрын

Пікірлер: 74
@CodingDroplets
@CodingDroplets 10 ай бұрын
💥 VPS Service Provider: bit.ly/hostinger-vps-cd ⭐ Join Us on Patreon: www.patreon.com/CodingDroplets 🔗 Blazor Tutorial Playlist: kzbin.info/aero/PLzewa6pjbr3IQEUfNiK2SROQC1NuKl6PV
@robdevoer1
@robdevoer1 9 ай бұрын
Great explanation. I really liked how you explained every step of the process and highlighted how to check the status and fix the issues. You will have saved a lot of people a lot of headaches and time by making this great video. Thanks!
@CodingDroplets
@CodingDroplets 9 ай бұрын
Thank you so much for your positive feedback! Glad to hear that. Your support and encouragement are greatly appreciated!
@user-cn1dg5xk6p
@user-cn1dg5xk6p Күн бұрын
This is exactly what I need. Thank you so much!
@sivakumarayappan1443
@sivakumarayappan1443 2 ай бұрын
Hey you have saved my time, perfectly working and deployed to VPS server. Timely helped your video. Great tutorial. One small advise, please go slowly when sharing the commands. I have paused many times to look at the commands your typed. Apart from that you video is awesome. I have forwarded to some of my friends as well.
@CodingDroplets
@CodingDroplets 2 ай бұрын
Happy to heart that the video helped you deploy your application to your VPS server! Thanks for your feedback about the command explanations. I’ll make sure to slow down in future videos to make it easier to follow. I appreciate you sharing the video with your friends and for the kind words!
@sparty3838
@sparty3838 5 ай бұрын
You're the best. Very useful and simple guide. Thank you
@CodingDroplets
@CodingDroplets 5 ай бұрын
Thank you for your kind words! Glad to hear that.
@Freyja_0
@Freyja_0 7 ай бұрын
Great video overall, would been also great if you could show how to setup SSL on apache2
@CodingDroplets
@CodingDroplets 7 ай бұрын
To enable HTTPS with Apache, you need to include the SSLCertificateFile and SSLCertificateKeyFile directives in your Apache configuration file. These directives specify the paths to your SSL certificate and private key files. You can refer to the official Apache documentation: httpd.apache.org/docs/2.4/ssl/ssl_howto.html
@codermallu
@codermallu 6 ай бұрын
Please make a video dotnet 8 blazor web app with nginx. I tried app is running on port but site not visible.. please
@CleoCat75
@CleoCat75 3 ай бұрын
it works! I had to chmod 777 everything though because everything was owned by root because I had to run everything with sudo. I'm sure I'll figure out that soon though.
@CodingDroplets
@CodingDroplets 3 ай бұрын
Glad to hear that
@dev_tem
@dev_tem 10 ай бұрын
Thanks, this was informative! Your videos have real quality content!
@CodingDroplets
@CodingDroplets 10 ай бұрын
You're very welcome, and thank you for your kind words! I'm delighted to hear that you found the video informative and of quality.
@dev_tem
@dev_tem 10 ай бұрын
@@CodingDroplets Yes, no doubt they are good, your videos did help me to get on with MAUI Shell navigation as well. Keep up with good work!
@CodingDroplets
@CodingDroplets 10 ай бұрын
Thank You!
@MakeAnything-
@MakeAnything- 3 ай бұрын
Thank you for this video. Is there any reason why you dont just have the blazor app listen on 443? Why the apache passthrough?
@CodingDroplets
@CodingDroplets 3 ай бұрын
Thank you for your comment! As I configured a reverse proxy, the request is routed from the Apache web server to the application. If you need to secure the application, you can configure SSL in Apache, where the user requests are hitting. Additionally, using Apache passthrough allows you to host multiple applications that listen on port 443 with different domains or subdomains. This setup offers more flexibility and easier management of your applications.
@f3rro_685
@f3rro_685 10 ай бұрын
Thanks for tutorial
@CodingDroplets
@CodingDroplets 10 ай бұрын
You're welcome
@murilobarbosa8268
@murilobarbosa8268 6 ай бұрын
Awesome tutorial, helped me a lot as a beginner in deployments. To work with a postgreSQL database I would just install postgres on the server and modify the connection string in the application file? Or I need to do more configuration on the provider?
@CodingDroplets
@CodingDroplets 6 ай бұрын
I'm glad to hear that you found the tutorial helpful! Setting up a PostgreSQL database on the server and modifying the connection string in the application file is a great start. However, depending on your specific requirements and the setup of your PostgreSQL database, you may need to do additional configuration, such as setting up users and permissions, configuring the PostgreSQL server to accept remote connections (if application and database are in different servers), and ensuring that any firewall settings allow access to the database from your application server.
@AthelstanEngland
@AthelstanEngland 10 ай бұрын
Not quite ready to do this yet but very useful and clear information. Thank you. Do you use Hostinger for any production deployments?
@CodingDroplets
@CodingDroplets 10 ай бұрын
Thank you for the feedback! Yes, I do use Hostinger for production deployments, and I've found their services to be reliable. Additionally, their customer support is excellent, which is crucial for any hosting provider.
@AthelstanEngland
@AthelstanEngland 10 ай бұрын
@@CodingDroplets thank you.
@CodingDroplets
@CodingDroplets 10 ай бұрын
You are welcome!
@dipanjandas9617
@dipanjandas9617 7 ай бұрын
it was an amazing video
@CodingDroplets
@CodingDroplets 7 ай бұрын
Thank you so much! Glad to hear that.
@luggiiiluggiii7179
@luggiiiluggiii7179 Ай бұрын
very very cool! thank you :) Do you also have a video on how to configure the site for https?
@CodingDroplets
@CodingDroplets Ай бұрын
Thank you for your kind words! It's quite straightforward to configure an SSL certificate in Apache Web Server. You can refer to the official guide here: httpd.apache.org/docs/2.4/ssl/ssl_howto.html This should help you get your site set up for HTTPS.
@luggiiiluggiii7179
@luggiiiluggiii7179 Ай бұрын
@@CodingDroplets Thank you, it worked. It was a bit more complicated for me because I had already created broken configurations with Certbot. But now everything is fine.
@MohiyoDeen
@MohiyoDeen 21 күн бұрын
Next do one with MS SQL Database with Blazor App
@CodingDroplets
@CodingDroplets 20 күн бұрын
Thanks for the suggestion! I’ll definitely consider creating a tutorial on hosting a Blazor app with an MS SQL database on Linux. Stay tuned!
@MohiyoDeen
@MohiyoDeen 20 күн бұрын
@@CodingDroplets eagerly waiting
@elielson3ew4234
@elielson3ew4234 6 ай бұрын
THANNKK U VERYYY MUCH BROO GOD BLESS YOU!!!!!!!!!!!!
@CodingDroplets
@CodingDroplets 6 ай бұрын
You're very welcome! I'm glad the tutorial was helpful to you. God bless you too! 🙏😊
@kristiadhy
@kristiadhy 18 күн бұрын
Could we apply the same method with Blazor SSR?
@CodingDroplets
@CodingDroplets 17 күн бұрын
Yes, the same method applies for hosting it on Linux using an Apache web server. The application demonstrated in the video is actually a Blazor Server-Side app.
@nickeax
@nickeax 7 ай бұрын
Thanks!
@CodingDroplets
@CodingDroplets 7 ай бұрын
Thank You so much for the support!
@aniolautonell9497
@aniolautonell9497 4 ай бұрын
I am having problems with the service
@CodingDroplets
@CodingDroplets 3 ай бұрын
Hi there! I'm sorry to hear that you're facing issues with your service. To assist you better, could you please provide more details about the specific problem you're encountering? It would help to know any error messages or behaviors you're seeing so that I can give you more targeted advice to resolve the issue. Thank you!
@_miranHorvat
@_miranHorvat 10 ай бұрын
What about upgrades? On iis I just overwrite the binaries. Iis spins up a new instance and does not interrupt any long running processes.
@CodingDroplets
@CodingDroplets 10 ай бұрын
For upgrades on a Linux server hosting an ASP.NET Core application, you can follow a similar approach to minimize downtime. Here's how you can handle upgrades: 1. Stop the Service: Use the 'systemctl stop' command to stop the service running your ASP.NET Core application. This will gracefully shut down your application. 2. Copy the Binaries: After stopping the service, replace the existing binaries with the updated ones. This step is similar to what you do on IIS. 3. Start the Service: Use the 'systemctl start' command to start the service again with the new binaries. By following this process, you can perform upgrades without causing extended downtime for your application, similar to the approach you mentioned with IIS. It allows for a seamless transition to the new version of your ASP.NET Core application.
@_miranHorvat
@_miranHorvat 10 ай бұрын
Thank you for answering. What if downtime is not acceptable? At the moment I can update my .net 4.6 framework monoliths when ever needed. Often multiple times a day. And there is absolutely no client interruption.
@anthonysilver2983
@anthonysilver2983 9 ай бұрын
Hello, need help with updating the web app. I did these steps: 1. Stopped Apache2 2. Copy all the files in my newly built web app and replaced the contents in var/apps/demoapps/ in ubuntu 3. Started Apache2 But whenever I access it, it still shows the old build. I'm not sure why this is happening, perhaps you can shed some light into what I'm missing?
@CodingDroplets
@CodingDroplets 9 ай бұрын
For updating an existing web app, you don't need to stop apache2. You can stop the service which you created for your application (in the video I created demoapp.service). You can follow the below steps. 1. Stop the Service: systemctl stop demoapp 2. Replace the files in the server 3. Start the Service: systemctl start demoapp
@anthonysilver2983
@anthonysilver2983 9 ай бұрын
@@CodingDroplets Thank you thank you so much! Worked like a charm! Thanks also for the very prompt response. Happy Holidays!
@CodingDroplets
@CodingDroplets 9 ай бұрын
You're very welcome! I'm delighted to hear that. Happy Holidays to you too!
@jerryjeremy4038
@jerryjeremy4038 8 ай бұрын
Do you have sample site that uses database and deployed in linux? Thanks
@CodingDroplets
@CodingDroplets 8 ай бұрын
The steps I demonstrated in the tutorial generally cover the deployment of the ASP.NET Core application. However, the configuration related to the database might differ based on the database provider (e.g., SQL Server, MySQL, PostgreSQL).
@cissemy
@cissemy 9 ай бұрын
Is it possible to deploy it to a shared linux hosting (cpanel does not support .net core) ? Thanks
@CodingDroplets
@CodingDroplets 9 ай бұрын
You can try using Plesk (I haven't tried it yet). www.plesk.com/kb/support/asp-net-core-support-in-plesk/
@olegbushev
@olegbushev 5 ай бұрын
On 10:52 you url is localhost 10:52
@CodingDroplets
@CodingDroplets 5 ай бұрын
Might be a mistake happened while video editing
@andreoliveira628
@andreoliveira628 7 ай бұрын
cannot open shared object file: No such file or directory An error occurred while loading required library libhostpolicy.so can you help me? the error happens when I use dotnet (project).dll
@CodingDroplets
@CodingDroplets 7 ай бұрын
Please check this: stackoverflow.com/questions/47285243/a-fatal-error-was-encountered-the-library-libhostpolicy-so-required
@dipanjandas9617
@dipanjandas9617 7 ай бұрын
Can i deploy asp dotnet website with database in linux server through apache proxy . Can you guide me how to do it with database pls
@CodingDroplets
@CodingDroplets 7 ай бұрын
Certainly! Deploying an ASP.NET Core website with a database on a Linux server is entirely feasible. Should you require the database to reside on the same server, it's imperative to install the corresponding database server on your Linux environment. The specific steps may vary depending on the type of database you intend to use.
@dipanjandas9617
@dipanjandas9617 7 ай бұрын
@@CodingDroplets after doing this how can i do ssl certificates for security i cant find your videos releated this can you guide me
@CodingDroplets
@CodingDroplets 7 ай бұрын
To enable HTTPS with Apache, you need to include the SSLCertificateFile and SSLCertificateKeyFile directives in your Apache configuration file. These directives specify the paths to your SSL certificate and private key files. You can refer to the official Apache documentation: httpd.apache.org/docs/2.4/ssl/ssl_howto.html
@user-ke5ci8ti5r
@user-ke5ci8ti5r 5 ай бұрын
please do dotnet-8 video, I tried on my VPS Linux ubuntu 22.04 , blazer app is running on port 5050 but not launch in browser, try simple web api also in dotnet-8 but not working in browser. Before dotnet-7 it works good.
@user-vi7xn1tj9f
@user-vi7xn1tj9f 4 ай бұрын
Could be a CORS issue, or compare original Program.cs to the newer version to get some clues.
@user-ke5ci8ti5r
@user-ke5ci8ti5r 4 ай бұрын
@@user-vi7xn1tj9f Thank you for your valuable replay. Now the problem solved I re-install the Linux then its working. But I see something if we add a signalR in the app the app stop working. Error shows WebSocket connection stopped. Can you explain me bro and do you have any videos for about CORS.
@manishmg3994
@manishmg3994 7 ай бұрын
ssl to make https, how
@CodingDroplets
@CodingDroplets 7 ай бұрын
To enable HTTPS with Apache, you need to include the SSLCertificateFile and SSLCertificateKeyFile directives in your Apache configuration file. These directives specify the paths to your SSL certificate and private key files. You can refer to the official Apache documentation: httpd.apache.org/docs/2.4/ssl/ssl_howto.html
@manishmg3994
@manishmg3994 7 ай бұрын
@@CodingDroplets thanks
@CodingDroplets
@CodingDroplets 7 ай бұрын
Welcome
@moayadmyro2091
@moayadmyro2091 3 ай бұрын
Are you serious you make video to deal with vps ?? 😅 i thought that you make video for shared hosting if i vps I can do what ever i want
@CodingDroplets
@CodingDroplets 3 ай бұрын
VPS (Virtual Private Server) indeed gives you more control and flexibility compared to shared hosting environments. The tutorial focuses on setting up .NET Core applications on VPS because it allows developers to have complete control over the server environment, which is crucial for deploying and managing applications efficiently.
Publish your .NET Web Applications on Linux using Apache
18:13
Hahn Software
Рет қаралды 10 М.
나랑 아빠가 아이스크림 먹을 때
00:15
진영민yeongmin
Рет қаралды 18 МЛН
POV: Your kids ask to play the claw machine
00:20
Hungry FAM
Рет қаралды 14 МЛН
Dockerize .NET 6 in 10 Minutes
13:33
Wes Doyle
Рет қаралды 143 М.
Deploying Blazor Mini Course: Creating an Azure Web App
33:23
IAmTimCorey
Рет қаралды 29 М.
Real-Time Notifications Using Blazor and SignalR from scratch
19:43
Milan Jovanović
Рет қаралды 33 М.
8 Free and Open Source Blazor UI Libraries
9:42
Claudio Bernasconi
Рет қаралды 39 М.
Microservices with Databases can be challenging...
20:52
Software Developer Diaries
Рет қаралды 32 М.
How To Deploy a ASP.NET Website to IIS or Azure
21:28
IAmTimCorey
Рет қаралды 261 М.
Turns out REST APIs weren't the answer (and that's OK!)
10:38
Dylan Beattie
Рет қаралды 157 М.
The intro to Docker I wish I had when I started
18:27
typecraft
Рет қаралды 87 М.
Deploy a simple ASP.NET Core Web App on Linux with Nginx
12:40