Deploying DotNet Core to Linux | Blazor Deploy Linux

Поділитися
Вставка
  • Опубліковано 16 лис 2024

КОМЕНТАРІ • 92

  • @CodingDroplets
    @CodingDroplets  Рік тому

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

  • @robdevoer1
    @robdevoer1 11 місяців тому +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  11 місяців тому

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

  • @BeholdTheLight23
    @BeholdTheLight23 Місяць тому +1

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

    • @CodingDroplets
      @CodingDroplets  Місяць тому

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

    • @aloisemukoma8701
      @aloisemukoma8701 Місяць тому

      Tried Plesk and worked fine.

  • @sivakumarayappan1443
    @sivakumarayappan1443 4 місяці тому +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  4 місяці тому

      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!

  • @murilobarbosa8268
    @murilobarbosa8268 8 місяців тому +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  8 місяців тому +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.

  • @MakeAnything-
    @MakeAnything- 5 місяців тому +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  5 місяців тому

      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.

  • @androidsavior
    @androidsavior Місяць тому +1

    What program you use for video production like this ? Thanks

    • @CodingDroplets
      @CodingDroplets  Місяць тому +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.

  • @aligrich3651
    @aligrich3651 Місяць тому +1

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

    • @CodingDroplets
      @CodingDroplets  Місяць тому

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

  • @ちゃこる-m9h
    @ちゃこる-m9h 2 місяці тому +1

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

    • @CodingDroplets
      @CodingDroplets  2 місяці тому

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

  • @emoemotional
    @emoemotional 9 місяців тому +2

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

    • @CodingDroplets
      @CodingDroplets  9 місяців тому

      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

  • @kristiadhy
    @kristiadhy 2 місяці тому +1

    Could we apply the same method with Blazor SSR?

    • @CodingDroplets
      @CodingDroplets  2 місяці тому

      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.

  • @sparty3838
    @sparty3838 7 місяців тому +1

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

    • @CodingDroplets
      @CodingDroplets  7 місяців тому

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

  • @CleoCat75
    @CleoCat75 5 місяців тому +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.

  • @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!

  • @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!

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

  • @jerryjeremy4038
    @jerryjeremy4038 10 місяців тому +1

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

    • @CodingDroplets
      @CodingDroplets  10 місяців тому

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

  • @anthonysilver2983
    @anthonysilver2983 11 місяців тому +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  11 місяців тому

      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 11 місяців тому +1

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

    • @CodingDroplets
      @CodingDroplets  11 місяців тому +1

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

  • @cissemy
    @cissemy 11 місяців тому +1

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

    • @CodingDroplets
      @CodingDroplets  11 місяців тому +1

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

  • @luggiiiluggiii7179
    @luggiiiluggiii7179 3 місяці тому +1

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

    • @CodingDroplets
      @CodingDroplets  3 місяці тому +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 3 місяці тому

      @@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 2 місяці тому +1

    Next do one with MS SQL Database with Blazor App

    • @CodingDroplets
      @CodingDroplets  2 місяці тому

      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 2 місяці тому

      @@CodingDroplets eagerly waiting

  • @dipanjandas9617
    @dipanjandas9617 9 місяців тому +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  9 місяців тому

      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 9 місяців тому +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  9 місяців тому

      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

  • @andreoliveira628
    @andreoliveira628 9 місяців тому

    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  9 місяців тому

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

  • @f3rro_685
    @f3rro_685 Рік тому +2

    Thanks for tutorial

  • @codermallu
    @codermallu 8 місяців тому +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 Місяць тому +1

      Did you manage this @codermallu

    • @codermallu
      @codermallu Місяць тому

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

    • @wiepcorbier
      @wiepcorbier Місяць тому

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

    • @codermallu
      @codermallu Місяць тому

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

    • @codermallu
      @codermallu Місяць тому

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

  • @ManojBabu-h9y
    @ManojBabu-h9y 8 місяців тому

    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 6 місяців тому +1

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

    • @ManojBabu-h9y
      @ManojBabu-h9y 6 місяців тому

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

  • @dipanjandas9617
    @dipanjandas9617 9 місяців тому +1

    it was an amazing video

    • @CodingDroplets
      @CodingDroplets  9 місяців тому

      Thank you so much! Glad to hear that.

  • @nickeax
    @nickeax 9 місяців тому +1

    Thanks!

  • @aniolautonell9497
    @aniolautonell9497 6 місяців тому +1

    I am having problems with the service

    • @CodingDroplets
      @CodingDroplets  5 місяців тому

      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!

  • @olegbushev
    @olegbushev 7 місяців тому +1

    On 10:52 you url is localhost 10:52

    • @CodingDroplets
      @CodingDroplets  7 місяців тому

      Might be a mistake happened while video editing

  • @elielson3ew4234
    @elielson3ew4234 8 місяців тому +1

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

    • @CodingDroplets
      @CodingDroplets  8 місяців тому

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

  • @manishmg3994
    @manishmg3994 10 місяців тому +1

    ssl to make https, how

    • @CodingDroplets
      @CodingDroplets  10 місяців тому

      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 10 місяців тому +1

      @@CodingDroplets thanks

    • @CodingDroplets
      @CodingDroplets  10 місяців тому

      Welcome

  • @moayadmyro2091
    @moayadmyro2091 5 місяців тому +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  5 місяців тому

      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 Місяць тому

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