CommunityBot/BuildRun Discussion View history

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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/
$