CommunityBot/BuildRun: Difference between revisions Discussion View history

Line 41: Line 41:
== Publish New Code ==
== Publish New Code ==


`publish` creates a standalone directory where the build can be run from
<code>publish</code> creates a standalone directory where the build can be run from
 
$ dotnet publish -c Release
$ dotnet publish -c Release
  Microsoft (R) Build Engine version 15.3.409.57025 for .NET Core  
  Microsoft (R) Build Engine version 15.3.409.57025 for .NET Core  
Copyright (C) Microsoft Corporation. All rights reserved.
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/WazeBotDiscord.dll
   WazeBotDiscord -> /home/communitybot/CommunityBot/src/WazeBotDiscord/bin/Release/netcoreapp2.0/publish/
   WazeBotDiscord -> /home/communitybot/CommunityBot/src/WazeBotDiscord/bin/Release/netcoreapp2.0/publish/
$

Revision as of 19:38, 26 September 2017

Stop Running Bot

$ sudo supervisorctl stop communitybot-discord

Download New Code

$ sudo su communitybot
$ cd ~/CommunityBot
$ pwd
/home/communitybot/CommunityBot
$ git pull
remote: Counting objects: 10, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 10 (delta 5), reused 5 (delta 0)
Unpacking objects: 100% (10/10), done.
From gitlab.com:SixbucksSolutions/CommunityBot
  4319f99..fea7bf8  master     -> origin/master
Updating 4319f99..fea7bf8
Fast-forward
 src/WazeBotDiscord/Modules/ReloadModule.cs   |   5 ++-
 src/WazeBotDiscord/Modules/ScriptsModule.cs  |  85 +++++++++++++++++++++++++++++++++++++++
 src/WazeBotDiscord/Program.cs                |   6 ++-
 src/WazeBotDiscord/Scripts/ScriptsService.cs | 147 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 241 insertions(+), 2 deletions(-)
create mode 100644 src/WazeBotDiscord/Modules/ScriptsModule.cs
create mode 100644 src/WazeBotDiscord/Scripts/ScriptsService.cs

Build New Release Code

$ cd src/WazeBotDiscord
$ pwd
/home/communitybot/CommunityBot/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/