CommunityBot/BuildRun Discussion View history

Revision as of 19:34, 26 September 2017 by TerryPurdue (talk | contribs) (Created page with "== Stop Running Bot == $ sudo supervisorctl stop communitybot-discord == Download New Code == $ sudo su communitybot $ cd ~/CommunityBot $ git pull == Build New Releas...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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