As I am progressing in my journey with .Net Core (Razor Pages), I wanted to showcase my apps and gain some experience with hosting/deployment. But which place to choose? I came across many cheap solutions, out of which I chose https://www.interserver.net/
It's important to note that I want to avoid Azure for this purpose, as it is more costly and I use it only for my job related project to host databases. Of course, I tried the free tier app hosting and deployment, but anyway I need to try a more serious cheap solution, that has way more apps/databases with a lower cost. That's how I came across the above mentioned ASP hosting provider.
Just as a quick note, a list of comparable cheap hosts is presented in this article: https://dottutorials.net/best-fast-cheap-windows-hosting-asp-net-core/
I purchased the 5 USD/month tier, which contains, most importantly:
- 25 sites
- unlimited databases (MYSQL, MS SQL)
- unlimited storage.
Let's log in to their site, after paying the amount, and use Plesk to manage my sites.
After entering PLESK, let's see how we can deploy our asp.net core web app!
The following screen appears.
- you can add subdomains. I added test3.zoltanhalasz.net (my domain being zoltanhalasz.net)
- In a subdomain or web site, there will be a dashboard with many functionalities.
- Download the file from web deploy publishing settings.
- Go to Visual Studio.
- Select the Web project (such as Razor pages), hit publish, we will choose web deploy
- Hit new
- Import profile - here use the file downloaded at 3)
- Use the settings from the screenshots below: Hit Save, and then Publish. After some minutes, the site should be opening in your browser. The files (package) deployed will be visible under the File Manager, found in the Plesk dashboard.
How to add a database?
I created a DB, MS SQL Type. It is immediately visible from your local MS SQL Studio, and in 12-24 hours, also from your account in myLittleAdmin (dashboard app from PLESK).
Any database can be added to an app's connection string (Interserver hosted ones ones visible in Plesk, or even from Azure) and the applications will work.
Top comments (3)
Great post. I just subscribed with Asphostportal and they also use Plesk control panel. Then, I found your documentation. Using VS to deploy .net core, work smoothly without any issue. Thanks a lot!
I'm happy that my blog post helped.
Thanks a lot. You saved me a lot of time, and I must say I am pleased with what interserver.net has to offer.