Skip to content

Simple console CLI tool used to deploy your .NET Core 2 apps via SSH to Digital Ocean for example or to any other similar provider

Notifications You must be signed in to change notification settings

DenisPav/DotnetDeploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DotnetDeploy 🚀

Command tool which deploys .NET Core apps via SSH (SFTP) and executes command after that (for example you can start your app after deployment 😊)

Intro

Tool is located on a MyGet feed here. You'll probably need to create NuGet.Config and add this feed to your code in order to use it since it isn't yet published on NuGet. In order to use this, you'll just need to reference nuget package as a cli tool via <DotNetCliToolReference> tag. After that setup deploy.json in root of your project and run dotnet deploy.

Configuration

All configuration is done via file named deploy.json which contains host configuration and command executed after the deployment on the specified host.

Sample config looks like this:

{
    "host": "host ip",
    "hostDirectory": "directory to which to deploy (will be created)",
    "username": "username",
    "password": "pass",
    "targetDir": "local dir",
    "endCommand": "command to execute after deployment",
    "commandTimeout": 2
}

About

Simple console CLI tool used to deploy your .NET Core 2 apps via SSH to Digital Ocean for example or to any other similar provider

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published