Deploying DotNet Core to Linux | Blazor Deploy Linux

Поделиться
HTML-код
  • Опубликовано: 30 ноя 2024

Комментарии • 92

  • @CodingDroplets
    @CodingDroplets  Год назад

    💥 VPS Service Provider:
    bit.ly/hostinger-vps-cd
    ⭐ Join Us on Patreon: www.patreon.com/CodingDroplets
    🔗 Blazor Tutorial Playlist:
    ruclips.net/p/PLzewa6pjbr3IQEUfNiK2SROQC1NuKl6PV

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

  • @BeholdTheLight23
    @BeholdTheLight23 2 месяца назад +1

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

    • @CodingDroplets
      @CodingDroplets  2 месяца назад

      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!

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

  • @emoemotional
    @emoemotional 10 месяцев назад +2

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

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

  • @murilobarbosa8268
    @murilobarbosa8268 9 месяцев назад +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  9 месяцев назад +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.

  • @ちゃこる-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.

  • @aligrich3651
    @aligrich3651 2 месяца назад +1

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

    • @CodingDroplets
      @CodingDroplets  2 месяца назад

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

  • @sparty3838
    @sparty3838 8 месяцев назад +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.

  • @kristiadhy
    @kristiadhy 3 месяца назад +1

    Could we apply the same method with Blazor SSR?

    • @CodingDroplets
      @CodingDroplets  3 месяца назад

      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.

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

  • @luggiiiluggiii7179
    @luggiiiluggiii7179 4 месяца назад +1

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

    • @CodingDroplets
      @CodingDroplets  4 месяца назад +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 4 месяца назад

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

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

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

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

  • @MohiyoDeen
    @MohiyoDeen 3 месяца назад +1

    Next do one with MS SQL Database with Blazor App

    • @CodingDroplets
      @CodingDroplets  3 месяца назад

      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 3 месяца назад

      @@CodingDroplets eagerly waiting

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

  • @olegbushev
    @olegbushev 8 месяцев назад +1

    On 10:52 you url is localhost 10:52

    • @CodingDroplets
      @CodingDroplets  8 месяцев назад

      Might be a mistake happened while video editing

  • @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 Год назад +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/

  • @f3rro_685
    @f3rro_685 Год назад +2

    Thanks for tutorial

  • @dipanjandas9617
    @dipanjandas9617 10 месяцев назад +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  10 месяцев назад

      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 10 месяцев назад +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  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

  • @andreoliveira628
    @andreoliveira628 10 месяцев назад

    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  10 месяцев назад

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

  • @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 7 месяцев назад +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.

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

  • @dipanjandas9617
    @dipanjandas9617 10 месяцев назад +1

    it was an amazing video

    • @CodingDroplets
      @CodingDroplets  10 месяцев назад

      Thank you so much! Glad to hear that.

  • @elielson3ew4234
    @elielson3ew4234 9 месяцев назад +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! 🙏😊

  • @nickeax
    @nickeax 9 месяцев назад +1

    Thanks!

    • @CodingDroplets
      @CodingDroplets  9 месяцев назад

      Thank You so much for the support!

  • @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 6 месяцев назад +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 2 месяца назад

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