Deploying DotNet Core to Linux | Blazor Deploy Linux

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 ม.ค. 2025

ความคิดเห็น • 97

  • @CodingDroplets
    @CodingDroplets  ปีที่แล้ว

    💥 VPS Service Provider:
    bit.ly/hostinger-vps-cd
    ⭐ Join Us on Patreon: www.patreon.com/CodingDroplets
    🔗 Blazor Tutorial Playlist:
    th-cam.com/play/PLzewa6pjbr3IQEUfNiK2SROQC1NuKl6PV.html

  • @nickeax
    @nickeax 11 หลายเดือนก่อน +1

    Thanks!

    • @CodingDroplets
      @CodingDroplets  11 หลายเดือนก่อน

      Thank You so much for the support!

  • @robdevoer1
    @robdevoer1 ปีที่แล้ว +3

    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  ปีที่แล้ว

      Thank you so much for your positive feedback! Glad to hear that. Your support and encouragement are greatly appreciated!

  • @Josh-js6sm
    @Josh-js6sm หลายเดือนก่อน +1

    You just saved my life. Usually deploying Blazor apps on IIS, now a client came around with "this must run on our Ubuntu server!!11". Super helpful tutorial. As someone has already said, please slow down and/or provide commands in the description. :)

    • @CodingDroplets
      @CodingDroplets  หลายเดือนก่อน +1

      I’m so glad the tutorial helped you out. Thanks for the feedback about the pace and including the commands. I’ll make sure to add the commands in the description for easier reference and keep your suggestion in mind for future videos.

  • @BeholdTheLight23
    @BeholdTheLight23 3 หลายเดือนก่อน +1

    This is what I call a tutorial. You are awesome!

    • @CodingDroplets
      @CodingDroplets  3 หลายเดือนก่อน

      Thank you so much for the kind words! I'm really happy to hear that you found the tutorial helpful. 😊

    • @aloisemukoma8701
      @aloisemukoma8701 3 หลายเดือนก่อน

      Tried Plesk and worked fine.

  • @ちゃこる-m9h
    @ちゃこる-m9h 4 หลายเดือนก่อน +1

    This is exactly what I need. Thank you so much!

    • @CodingDroplets
      @CodingDroplets  4 หลายเดือนก่อน

      You're very welcome! Glad to hear that the video was helpful.

  • @sparty3838
    @sparty3838 9 หลายเดือนก่อน +1

    You're the best. Very useful and simple guide. Thank you

    • @CodingDroplets
      @CodingDroplets  9 หลายเดือนก่อน

      Thank you for your kind words! Glad to hear that.

  • @dev_tem
    @dev_tem ปีที่แล้ว +1

    Thanks, this was informative! Your videos have real quality content!

    • @CodingDroplets
      @CodingDroplets  ปีที่แล้ว

      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 ปีที่แล้ว +1

      @@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  ปีที่แล้ว

      Thank You!

  • @sivakumarayappan1443
    @sivakumarayappan1443 6 หลายเดือนก่อน +1

    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  6 หลายเดือนก่อน

      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!

  • @CleoCat75
    @CleoCat75 7 หลายเดือนก่อน +1

    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.

  • @androidsavior
    @androidsavior 3 หลายเดือนก่อน +1

    What program you use for video production like this ? Thanks

    • @CodingDroplets
      @CodingDroplets  3 หลายเดือนก่อน +1

      Thanks for watching! 😊 For video production, I use a combination of tools. To know more feel free to contact me through the email listed in the About section of my channel.

  • @f3rro_685
    @f3rro_685 ปีที่แล้ว +2

    Thanks for tutorial

  • @emoemotional
    @emoemotional 11 หลายเดือนก่อน +2

    Great video overall, would been also great if you could show how to setup SSL on apache2

    • @CodingDroplets
      @CodingDroplets  11 หลายเดือนก่อน

      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

    • @Josh-js6sm
      @Josh-js6sm หลายเดือนก่อน

      If someone still reads this, just follow the usual Let'sEncrypt/Certbot tutorials after setting everything up. The usual Certbot routine works like a charm without any further configs. :)

  • @MakeAnything-
    @MakeAnything- 7 หลายเดือนก่อน +2

    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  7 หลายเดือนก่อน

      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.

  • @olegbushev
    @olegbushev 10 หลายเดือนก่อน +1

    On 10:52 you url is localhost 10:52

    • @CodingDroplets
      @CodingDroplets  9 หลายเดือนก่อน

      Might be a mistake happened while video editing

  • @aligrich3651
    @aligrich3651 4 หลายเดือนก่อน +1

    great video
    one more thing, did you configure something on the dotnet files before publishing or no

    • @CodingDroplets
      @CodingDroplets  4 หลายเดือนก่อน

      Thanks for your comment! No special configurations were needed in the .NET files before publishing.

  • @codermallu
    @codermallu 10 หลายเดือนก่อน +3

    Please make a video dotnet 8 blazor web app with nginx. I tried app is running on port but site not visible.. please

    • @aloisemukoma8701
      @aloisemukoma8701 3 หลายเดือนก่อน +1

      Did you manage this @codermallu

    • @codermallu
      @codermallu 3 หลายเดือนก่อน

      @@aloisemukoma8701 Yes, I reinstall dotnet. You can find documents from Microsoft.

    • @wiepcorbier
      @wiepcorbier 3 หลายเดือนก่อน

      As far as I know, linux is not ready for dotnet8 yet. Due to microsoft.

    • @codermallu
      @codermallu 3 หลายเดือนก่อน

      @@wiepcorbier dotnet 8 is working well in Linux ubuntu.

    • @codermallu
      @codermallu 3 หลายเดือนก่อน

      @@wiepcorbier dotnet.8 is working well in Linux ubuntu.

  • @murilobarbosa8268
    @murilobarbosa8268 10 หลายเดือนก่อน +1

    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  10 หลายเดือนก่อน +1

      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 ปีที่แล้ว +1

    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  ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      @@CodingDroplets thank you.

    • @CodingDroplets
      @CodingDroplets  ปีที่แล้ว

      You are welcome!

  • @elielson3ew4234
    @elielson3ew4234 10 หลายเดือนก่อน +1

    THANNKK U VERYYY MUCH BROO GOD BLESS YOU!!!!!!!!!!!!

    • @CodingDroplets
      @CodingDroplets  10 หลายเดือนก่อน

      You're very welcome! I'm glad the tutorial was helpful to you. God bless you too! 🙏😊

  • @jerryjeremy4038
    @jerryjeremy4038 ปีที่แล้ว +1

    Do you have sample site that uses database and deployed in linux? Thanks

    • @CodingDroplets
      @CodingDroplets  ปีที่แล้ว

      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).

  • @torrvic1156
    @torrvic1156 หลายเดือนก่อน +1

    Sir! Is it a Blazor Server or Blazor WASM application? It looks like it is a Server type of Blazor application. Thanks for the video!

    • @CodingDroplets
      @CodingDroplets  หลายเดือนก่อน +1

      Thank you for watching the video! 😊 Yes, you're correct. It’s a Blazor Server application that I used for the demonstration. However, the hosting setup shown in the video works for any ASP.NET Core application, including Blazor WASM, MVC, API, or Razor Pages.

  • @kristiadhy
    @kristiadhy 4 หลายเดือนก่อน +1

    Could we apply the same method with Blazor SSR?

    • @CodingDroplets
      @CodingDroplets  4 หลายเดือนก่อน

      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.

  • @_miranHorvat
    @_miranHorvat ปีที่แล้ว +1

    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  ปีที่แล้ว +2

      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 ปีที่แล้ว

      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.

  • @luggiiiluggiii7179
    @luggiiiluggiii7179 5 หลายเดือนก่อน +1

    very very cool! thank you :) Do you also have a video on how to configure the site for https?

    • @CodingDroplets
      @CodingDroplets  5 หลายเดือนก่อน +1

      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 5 หลายเดือนก่อน

      @@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.

  • @anthonysilver2983
    @anthonysilver2983 ปีที่แล้ว +1

    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  ปีที่แล้ว

      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 ปีที่แล้ว +1

      @@CodingDroplets Thank you thank you so much! Worked like a charm! Thanks also for the very prompt response. Happy Holidays!

    • @CodingDroplets
      @CodingDroplets  ปีที่แล้ว +1

      You're very welcome! I'm delighted to hear that. Happy Holidays to you too!

  • @dipanjandas9617
    @dipanjandas9617 11 หลายเดือนก่อน +1

    it was an amazing video

    • @CodingDroplets
      @CodingDroplets  11 หลายเดือนก่อน

      Thank you so much! Glad to hear that.

  • @dipanjandas9617
    @dipanjandas9617 11 หลายเดือนก่อน +1

    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  11 หลายเดือนก่อน

      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 11 หลายเดือนก่อน +1

      @@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  11 หลายเดือนก่อน

      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

  • @cissemy
    @cissemy ปีที่แล้ว +1

    Is it possible to deploy it to a shared linux hosting (cpanel does not support .net core) ?
    Thanks

    • @CodingDroplets
      @CodingDroplets  ปีที่แล้ว +1

      You can try using Plesk (I haven't tried it yet).
      www.plesk.com/kb/support/asp-net-core-support-in-plesk/

  • @aniolautonell9497
    @aniolautonell9497 8 หลายเดือนก่อน +1

    I am having problems with the service

    • @CodingDroplets
      @CodingDroplets  7 หลายเดือนก่อน

      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!

  • @andreoliveira628
    @andreoliveira628 11 หลายเดือนก่อน

    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  11 หลายเดือนก่อน

      Please check this:
      stackoverflow.com/questions/47285243/a-fatal-error-was-encountered-the-library-libhostpolicy-so-required

  • @manishmg3994
    @manishmg3994 ปีที่แล้ว +1

    ssl to make https, how

    • @CodingDroplets
      @CodingDroplets  ปีที่แล้ว

      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 ปีที่แล้ว +1

      @@CodingDroplets thanks

    • @CodingDroplets
      @CodingDroplets  ปีที่แล้ว

      Welcome

  • @ManojBabu-h9y
    @ManojBabu-h9y 10 หลายเดือนก่อน

    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.

    • @lemonade2345-j4e
      @lemonade2345-j4e 8 หลายเดือนก่อน +1

      Could be a CORS issue, or compare original Program.cs to the newer version to get some clues.

    • @ManojBabu-h9y
      @ManojBabu-h9y 8 หลายเดือนก่อน

      @@lemonade2345-j4e 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.

  • @MohiyoDeen
    @MohiyoDeen 4 หลายเดือนก่อน +1

    Next do one with MS SQL Database with Blazor App

    • @CodingDroplets
      @CodingDroplets  4 หลายเดือนก่อน

      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 4 หลายเดือนก่อน

      @@CodingDroplets eagerly waiting

  • @moayadmyro2091
    @moayadmyro2091 7 หลายเดือนก่อน +1

    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  7 หลายเดือนก่อน

      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.

    • @level1245
      @level1245 4 หลายเดือนก่อน

      @@CodingDroplets Please reply when i run: dotnet appname.dll it does nothing why is that ? i did install the aspnetcore-runtime-8.0