Deploy ASP.NET App on Linux with NGINX | Chatting App | Code First | MSSQL

preview_player
Показать описание
#dotnet #programming #webdevelopment
Deploying an ASP.NET Core application on a Linux server with NGINX as the reverse proxy is a common approach to host web applications built using the ASP.NET Core framework. ASP.NET Core is a cross-platform framework that allows developers to build and run applications on various operating systems, including Windows, macOS, and Linux. NGINX, on the other hand, is a high-performance web server and reverse proxy that is known for its efficiency and reliability.

Here’s a high-level overview of the process:
💻 01 Install the .NET Core Runtime on the server

sudo apt update
sudo apt install apt-transport-https
sudo apt install dotnet-sdk-6.0

💻 02: Check Dotnet Vertion Now
dotnet --version

💻 03: Install Nginx on the server
sudo apt update
sudo apt install nginx
systemctl status nginx

💻 04 Publish app from VS Code
dotnet publish -c Release -r linux-x64 --self-contained true
cd /var/www/RealTimeChatApp

💻 4.1 Copy Files to the Server:

#05 Configure Nginx
/etc/nginx/sites-available

For example, create a file named myapp with the following content:

server {
listen 80;

location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}

💻 07 Create a symbolic link to enable the site configuration:
sudo ln -s /etc/nginx/sites-available/myapp /etc/nginx/sites-enabled/

* Replace user, server_ip, and /path/to/destination with the appropriate values.

💻 08 Managing the Nginx Process
sudo systemctl stop nginx
sudo systemctl start nginx
sudo systemctl restart nginx
sudo systemctl reload nginx
sudo systemctl disable nginx
sudo systemctl enable nginx

💻 09 Run the Application
🚀 Live Demo:

👋 Complete Project Using ASP.NET Core
✅ Business ERP Solution/Product/POS/Company Management:

✅ School/College/University Management ERP:

✅ Dashboard Template | ASP.NET Core MVC Web Starter Kit

✅ Advance POS System with Stock Manager | ASP.NET Core | EF Core | .NET Core 6.0:

✅ Asset Management System with Barcode | ASP.NET Core | EF Core | .NET Core 6.0:

✅ Advanced Files & Users Management | ASP.NET Core | EF Core | .NET Core | MSSQL | MySQL:

✅ Hospital and Pharmacy Management System | ASP.NET Core | EF Core:

✅ Inventory and User Management System:

✅ Invoice Gen(Invoice Generation and Management) using .Net Core and EF:

✅ Complaint | Issue | Helpdesk Ticket | My Ticket HelpDesk Support System | ASP.NET Core | EF Core:

✅ User Management:

✅ ASP.NET Core CRUD Operation Using Dot Net 6.0 | MVC| MSSQL | MySQL | EF Core Code First | jQuery

✅ ASP.NET Core full CRUD with .NET 5 | MSSQL/MySQL | EF code first:

✅ Staff | Employee Leave Management System

✅ Library Management System | ASP.NET Core | MSSQL | Code First

✅ ASP.NET REST API Template Starter Kit

🚀 If you want to modify or add new features, you can always contact us at,
WhatsApp: 8801674411603
Telegram: shahed71bd
Skype: shahedatomap
Рекомендации по теме
Комментарии
Автор

trying to deploy the .NET8.0 with the same above process but the output is blank. any idea?

talhamalik
Автор

Can we access the MSSQL server client like SSMS? to query and modify the procedures? Are there any alternatives for Linux servers?

subashc