collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Using Bazaar to update multiple bots on the same system (Linux)  (Read 6486 times)

0 Members and 1 Guest are viewing this topic.

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
This is a rough guide put together on request from Zeephonz.

Please note that this setup should only be attempted if you are fairly knowledgable about PHP and know how to handle running unstable code as you can never be certain that code checked out from the Bazaar repository is in a working state, even though we do attempt to keep it running.

First we checkout the latest codebase we want to use.
For the latest stable branch (as of this post this is 0.6) we want to issue the command
Code: [Select]
bzr co lp:bebot/0.6 <destination folder>

For the purpose of this guide, i will assume you name the folder stable-0.6

We now create the folder in which our configuration and other files like custom modules will live as we for the purpose of this setup want to keep the bazaar working directory clean.

Code: [Select]
mkdir BeBot

Now copy the following folders and files from stable-0.6/ to BeBot/
Code: [Select]
conf/
custom/
log/
themes/
txt/
StartBot.php

You can now safely edit all the files contained in those directories, without having to worry about conflicts when updating your working directory or worrying that any of your changes to these files will be overwritten.

The next step is to link the remaining folders and files from the working folder to your actual BeBot folder.
This example assumes you are sitting outside the folders and that both are sitting in the same folder on your system.
Code: [Select]
ln -s stable-0.6/core BeBot/core
ln -s stable-0.6/extra BeBot/extra
ln -s stable-0.6/main BeBot/main
ln -s stable-0.6/modules BeBot/modules
ln -s stable-0.6/Sources BeBot/Sources
ln -s stable-0.6/Main.php BeBot/Main.php

Now all you have to do is configure your bots as normal for a multi bot setup and update your bot using bazaar by going into the stable-0.6 folder and issuing
Code: [Select]
bzr up

If for any reason you need to revert to an older version of the bot you can issue
Code: [Select]
bzr revert -r <revision>

Where <revision> is the revision number you want to go back to.

If you are feeling brave and really want to live life on the edge you can exchange the original checkout command with
Code: [Select]
bzr co lp:bebot <target folder>

This will check out the latest development trunk. Be warned however that this is the bleeding edge and will very often be broken and or incomplete.
BeBot Founder and Fixer Kingpin

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 444
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal