Ayin
Ayin
CC#
Created by Ayin on 1/10/2025 in #help
✅ Hosting MVC project on LINUX VPS using github actions
hm, thank you so much
10 replies
CC#
Created by Ayin on 1/10/2025 in #help
✅ Hosting MVC project on LINUX VPS using github actions
isn't there any method to create actual users for it through terminal though?
10 replies
CC#
Created by Ayin on 1/10/2025 in #help
✅ 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
CC#
Created by Ayin on 4/27/2024 in #help
How things get to the place
So I would still need [FromForm] to use ModelState in controller
7 replies
CC#
Created by Ayin on 4/27/2024 in #help
How things get to the place
Are controllers supposed to have properties? Other than services and configs
7 replies
CC#
Created by Ayin on 4/27/2024 in #help
How things get to the place
7 replies
CC#
Created by Ayin on 4/27/2024 in #help
How things get to the place
Doesn't it need something like ([FromForm] Movie movie) to get model?
7 replies