Skip to content

Commit

Permalink
Fix variables. Use executable for execstart.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Apr 15, 2021
1 parent 2aa12bd commit cda0234
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,22 @@ A shortcut to this page is placed in the `\Program Files\Remotely\` folder. You

## Shortcut Keys
There are a few shortcut keys available when using the console.
* / : Slash will open the autocomplete for selecting the current command mode. The names are configurable in the Account - Options page.
* / : Slash will allow you to switch between shells. The names are configurable in the Options page.
* Up/Down: Use arrow up/down to cycle through input history.
* Ctrl + Up/Down: Scroll the console output window.
* Ctrl + Q: Clear the output window.
* Esc: Close the autocomplete window.

## Port Configuration
You can change the local port that the Remotely .NET server listens on by adding the below to `appsettings.Production.json`:

```
"Kestrel": {
"Endpoints": {
"Http": {
"Url": "http://127.0.0.1:{port-number}"
}
}
}
```

## API and Integrations
Remotely has a basic API, which can be browsed at https://app.remotely.one/swagger (or your own server instance). Most endpoints require authentication via an API access token, which can be created by going to Account - API Access.
Expand Down
6 changes: 3 additions & 3 deletions Server.Installer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ public static async Task Main(string[] args)
ConsoleHelper.WriteLine("Download pre-built package? If false, a customized server package will be created " +
"through GitHub Actions.");

var createNew = ConsoleHelper.ReadLine("Selection (true/false)").Trim();
if (bool.TryParse(createNew, out var result))
var usePrebuiltPackage = ConsoleHelper.ReadLine("Selection (true/false)").Trim();
if (bool.TryParse(usePrebuiltPackage, out var result))
{
cliParams.CreateNew = result;
cliParams.UsePrebuiltPackage = result;
}
}

Expand Down
2 changes: 1 addition & 1 deletion Server.Installer/Resources/CentOS_Caddy_Install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ caddyConfig="
}
"

echo "$caddyConfig" > /etc/caddy/Caddyfile
echo "$caddyConfig" >> /etc/caddy/Caddyfile


# Create service.
Expand Down
4 changes: 2 additions & 2 deletions Server.Installer/Resources/Ubuntu_Caddy_Install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ caddyConfig="
}
"

echo "$caddyConfig" > /etc/caddy/Caddyfile
echo "$caddyConfig" >> /etc/caddy/Caddyfile


# Create Remotely service.
Expand All @@ -77,7 +77,7 @@ Description=Remotely Server
[Service]
WorkingDirectory=$AppRoot
ExecStart=/usr/bin/dotnet $AppRoot/Remotely_Server.dll
ExecStart=$AppRoot/Remotely_Server
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
Expand Down
2 changes: 1 addition & 1 deletion Server.Installer/Resources/Ubuntu_Nginx_Install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ Description=Remotely Server
[Service]
WorkingDirectory=$AppRoot
ExecStart=/usr/bin/dotnet $AppRoot/Remotely_Server.dll
ExecStart=$AppRoot/Remotely_Server
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
Expand Down

0 comments on commit cda0234

Please sign in to comment.