Given my application name is "App" and it compiled into "App.dll" this will look like: dotnet App.dll When done, open command line terminal (CMD utility) and navigate to that folder. In Visual Studio, you simply select your app in solution explorer, right-click and publish to folded. Publish your ASP.NET Core application to local folder, so you can run it locally before deployment and verify it works correctly from command line. Sudo apt-get install sqlite3 libsqlite3-dev Installing SQLite (optionally)īecause my web application requires SQLite database, I'm also installing it here. ![]() Make sure you can run it and all works fine. NET Core and testing it with "hello world" console application. Microsoft likes to change links, so this may on may not work, but you can go to this tutorial, select your OS and run through it all the way, installing latest version of. To make things simpler, I run Linux subsystem on my Windows machine so I can use "Bash on Ubuntu" utility and run SSH command straight from there. Once you'll get this, host should provide info on how to connect to your server remotely, usually using SSH. Get your hosting account, in my case I got cheapest "droplet" available running Ubuntu 18.04 ($5 monthly). I"m using DigitalOcean here as example, but obviously this can be any Linux based hosting. This not by any means an extensive tutorial on how to setup things in production secure environment, it is how to get you started quickly and (relatively) easily so you won't drop it discouraged and frustrated half way through. ![]() ![]() So I decided to put this together in case I need to go over it again or maybe someone else can use it. NET Core on Linux, but most of it pretty generic and may be a little overwhelming when you trying to accomplish specific and relatively simple task. There is decent amount of documentation on how to install, configure and run.
0 Comments
Leave a Reply. |