Ayin
✅ Hosting MVC project on LINUX VPS using github actions
No need. You can publish your project as a self-contained app and it will bundle everything, including the .NET runtime, into a single executable.it's first time hearing about such thing, so just adding
self-contained true
in publish section will work? Would it instal MS SQL too for me considering I'm using EF Core
Migrations and seeding. Migrations can be compiled into an executable as well. Alternatively, you could create a backup of the schema of your local database and use that.it's at startup that I'm using
context.Database.Migrate()
to ensure database is up to date, but I believe it doesn't create database itself, also if I want it to be secure I should use user too, so how am I supposed to database or user for my database so I can then access it remotely and with application if I can't use ssms on VPS?10 replies