CommunityBot/BuildRun Discussion View history

Stop Running Bot

$ sudo supervisorctl stop communitybot-discord

Download New Code

$ sudo su communitybot
$ cd ~/CommunityBot
$ git pull

Build New Release Code

$ cd src/WazeBotDiscord
$ dotnet build -c Release
Microsoft (R) Build Engine version 15.3.409.57025 for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.
WazeBotDiscord -> /home/communitybot/CommunityBot/src/WazeBotDiscord/bin/Release/netcoreapp2.0/WazeBotDiscord.dll
Build succeeded.
   0 Warning(s)
   0 Error(s)
 Time Elapsed 00:00:02.66

Publish New Code

`publish` creates a standalone directory where the build can be run from $ dotnet publish -c Release

Microsoft (R) Build Engine version 15.3.409.57025 for .NET Core 

Copyright (C) Microsoft Corporation. All rights reserved.

 WazeBotDiscord -> /home/communitybot/CommunityBot/src/WazeBotDiscord/bin/Release/netcoreapp2.0/WazeBotDiscord.dll
 WazeBotDiscord -> /home/communitybot/CommunityBot/src/WazeBotDiscord/bin/Release/netcoreapp2.0/publish/
$