You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 13, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+35-18Lines changed: 35 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,28 +7,42 @@
7
7
8
8
:star:*Please star this project if you find it useful!*
9
9
10
-
A `dotnet` CLI extension that enables quick deployments over SSH. This program was specifically designed to streamline .NET application development for the Raspberry Pi running Raspbian.
10
+
A `dotnet` CLI command that enables quick deployments over SSH. This program was specifically designed to streamline .NET application development for the Raspberry Pi running Raspbian.
11
11
12
12
**If you came here looking for our old version of SSHDeploy please click [here](https://www.nuget.org/packages/SSHDeploy/), otherwise you are in the right place**
13
13
14
14
The following commands are currently available:
15
-
*`dotnetsshdeploy monitor` - Watches changes on a single file, if this event is raised then it proceeds to send the specified source path files over SSH
16
-
*`dotnetsshdeploy push` - Single-use command that transfers files over SSH
15
+
*`dotnet-sshdeploy monitor` - Watches changes on a single file, if this event is raised then it proceeds to send the specified source path files over SSH
16
+
*`dotnet-sshdeploy push` - Single-use command that transfers files over SSH
17
17
18
18
## Installation
19
-
As of now, CLI does not allow command line installation so you'll need to modify your csproj manually.
19
+
We are using the brand new implementation of the global tool in .NET Core Apps 2.1+. Now you can easily download the package by running the next command
20
+
21
+
```console
22
+
dotnet tool install -g dotnet-sshdeploy
23
+
```
24
+
25
+
### Custom installation
26
+
If you download the project and want to test installing your own version of the project you need to pack and then install the nuget
27
+
28
+
```console
29
+
// In the root of your project run
30
+
dotnet pack
31
+
32
+
// Run the following command where you nupkg was created
*Voilà! sshdeploy finds the necessary arguments provided using proper xml tags and deploys after a successful build*
50
65
51
66
***Be sure you are using ' */* ' with *RemoteTargetPath* otherwise it will not work.**
52
67
***You MUST use the property**`BuildingInsideSshDeploy`**to make sure this event will not be executed within sshdeploy's build method to avoid an infinite loop**
53
68
***If no RuntimeIdentifier is provided a [Framework-dependent deployment](https://docs.microsoft.com/en-us/dotnet/core/deploying/) will be created otherwise a [Self-contained deployment](https://docs.microsoft.com/en-us/dotnet/core/deploying/) will**
69
+
***The command neds to be excute in the same folder as the csproj**
70
+
54
71
#### Monitor
55
72
1. Go to your Visual Studio Solution (the one you intend to continuously deploy to the Raspberry Pi).
56
73
2. Right-click on the project and click on the menu item "Properties"
@@ -67,7 +84,7 @@ As of now, CLI does not allow command line installation so you'll need to modify
67
84
```
68
85
5. Execute
69
86
```
70
-
dotnetsshdeploy monitor
87
+
dotnet-sshdeploy monitor
71
88
```
72
89
73
90
**FYI: Arguments passed using the csproj file will not override the ones provided using the cli**
@@ -100,13 +117,13 @@ cd C:\projects\Unosquare.Labs.RasPiConsole\Unosquare.Labs.RasPiConsole\
100
117
```
101
118
2. Execute this command with some arguments. Here's a simple example:
*`-s` refers to the source path of the files to transfer.
@@ -131,7 +148,7 @@ The following steps outline a continuous deployment of a Visual Studio solution
131
148
*`-w` refers to the password.
132
149
* Note that there are many more arguments you can use. Simply issue
133
150
```
134
-
dotnetsshdeploy monitor
151
+
dotnet-sshdeploy monitor
135
152
```
136
153
This will get you all the options you can use.
137
154
@@ -169,7 +186,7 @@ Ground Control to Major Tom: Have a nice trip in space!
169
186
**In order to make this tool much more useful, we need to take advantage of the pre and post commands. The idea is to find the process and kill it if it is currently running on the pre-command, and run the process once the deployment has been completed using the post-command argument. The hope is that this will make the deploy, run, and debug cycle, much less tedious for a .NET developer using a Raspberry Pi.*
170
187
171
188
* Here's a good example of using pre and post commands to acocmplish the above:
Copy file name to clipboardExpand all lines: Unosquare.Labs.SshDeploy/Unosquare.Labs.SshDeploy.csproj
+7-9Lines changed: 7 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,26 +1,24 @@
1
-
<ProjectSdk="Microsoft.NET.Sdk">
1
+
<ProjectSdk="Microsoft.NET.Sdk">
2
2
3
3
<PropertyGroup>
4
4
<OutputType>Exe</OutputType>
5
-
<TargetFramework>netcoreapp2.0</TargetFramework>
5
+
<TargetFramework>netcoreapp2.1</TargetFramework>
6
+
<IsPackable>true</IsPackable>
7
+
<PackAsTool>true</PackAsTool>
6
8
<AssemblyName>dotnet-sshdeploy</AssemblyName>
7
9
<PackageId>dotnet-sshdeploy</PackageId>
8
-
<Version>0.2.0</Version>
9
-
<PackageVersion>0.2.0</PackageVersion>
10
+
<Version>0.3.0</Version>
11
+
<PackageVersion>0.3.0</PackageVersion>
10
12
<Authors>Unosquare</Authors>
11
13
<Description>A command-line tool that enables quick deployments over SSH. This is program was specifically designed to streamline .NET application development for the Raspberry Pi running Raspbian.</Description>
0 commit comments