Last active
August 29, 2015 14:04
-
-
Save philippeowagner/bc2cd1b685c49a35810f to your computer and use it in GitHub Desktop.
Install the 3bot worker an your machine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[3bot-settings] | |
BOT_ENDPOINT=* | |
PORT = 55556 | |
SECRET_KEY = ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
{ | |
echo "This script requires superuser access to install software." | |
echo "You will be prompted for your password by sudo." | |
# clear any previous sudo permission | |
sudo -k | |
# run inside sudo | |
sudo sh <<SCRIPT | |
mkdir -p /usr/local/3bot/ | |
virtualenv --no-site-packages /usr/local/3bot/ | |
cd /usr/local/3bot/ | |
. ./bin/activate | |
pip install -e git+ssh://[email protected]/arteria/3bot-worker#egg=threebot_worker | |
mkdir -p /etc/3bot/ | |
wget curl https://gist.githubusercontent.com/philippeowagner/bc2cd1b685c49a35810f/raw/config.ini -O /etc/3bot/config.ini | |
echo "/usr/local/3bot/src/threebot-worker/threebot_worker/worker.py start" | |
SCRIPT | |
echo "Installation complete" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
USE ON YOUR OWN RISK!
Install a 3bot worker using this script. On your command line / terminal run
Please note that
virtualenv
andpip
must be installed on your Debian, Ubuntu or Mac. Other systems are currently not tested.Do not forget to change the
SECRET_KEY
.After installation is completed, start the worker using this command.
To run the worker in the foreground (no ) just pass call the worker with
start debug
instead ofstart
.