aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2018-03-14 21:21:02 +0100
committerGravatar Jeremiah Boby <[email protected]>2018-03-14 20:21:02 +0000
commitbe287bd17e5aa22b937dcfbc9b3d2b4a90ab87ef (patch)
tree428e1cf6f7234dabcd4d0c2064d0889f54eb6e2a /scripts
parentLogging fixes (diff)
Logging cogs (#32)
* added logging to events and verification cogs * Added logging to the tags cog * Added logging to Fun, Logging, and Security cogs. * Added logging to Deployment cog. * Added logging to cog management cog * Added logging to clickup cog * Changed some logging levels across all cogs. Most of my log.infos should have been log.debugs. Thanks Joseph. * Added logging to the Bot cog. * Adding logging to the non-cog files. * Added the logging handler to Eval, but didn't add the actual Logging. I'll leave that to Martmist * A couple of minor bugfixes * Add "trace" logging level * Add logging for paginator * Add JSON logging for future datadog integration * Changed some loglevels to trace now that we have the trace method, and also fixed stuff pointed out by joseph in his review. * Completed testing for bot.py * Completed testing for clickup.py * Completed testing for cogs.py * Completed testing for deployment.py * Completed testing for fun.py * Finished logging for bot and tags.py, as well as __init__.py * Addressing all feedback in request for changes.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/vagrant_bootstrap.sh47
1 files changed, 47 insertions, 0 deletions
diff --git a/scripts/vagrant_bootstrap.sh b/scripts/vagrant_bootstrap.sh
index a9819fa4f..61e2835f4 100644
--- a/scripts/vagrant_bootstrap.sh
+++ b/scripts/vagrant_bootstrap.sh
@@ -14,3 +14,50 @@ apt-get install -y python3.6-dev
apt-get install -y build-essential
curl -s https://bootstrap.pypa.io/get-pip.py | python3.6 -
python3.6 -m pip install -r /vagrant/requirements.txt
+
+tee /root/.bashrc <<EOF
+HISTCONTROL=ignoreboth
+shopt -s histappend
+HISTSIZE=1000
+HISTFILESIZE=2000
+shopt -s checkwinsize
+
+if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
+ debian_chroot=$(cat /etc/debian_chroot)
+fi
+
+case "$TERM" in
+ xterm-color|*-256color) color_prompt=yes;;
+esac
+
+PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
+
+test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
+alias ls='ls --color=auto'
+alias grep='grep --color=auto'
+alias fgrep='fgrep --color=auto'
+alias egrep='egrep --color=auto'
+alias ll='ls -alF --color=auto'
+alias la='ls -A --color=auto'
+alias l='ls -CF --color=auto'
+
+export BOT_TOKEN="abcdefg"
+export SITE_URL="pysite.local"
+export DEPLOY_SITE_KEY="sdfsdf"
+export DEPLOY_BOT_KEY="sdfsdf"
+export DEPLOY_URL="https://api.beardfist.com/pythondiscord"
+export STATUS_URL="https://api.beardfist.com/pdstatus"
+export CLICKUP_KEY="abcdefg"
+export PAPERTRAIL_ADDRESS=""
+export PAPERTRAIL_PORT=""
+export LOG_LEVEL=DEBUG
+export SERVER_NAME="pysite.local"
+export WEBPAGE_PORT="80"
+export WEBPAGE_SECRET_KEY="123456789abcdefghijklmn"
+export RETHINKDB_HOST="127.0.0.1"
+export RETHINKDB_PORT="28016"
+export RETHINKDB_DATABASE="database"
+export RETHINKDB_TABLE="table"
+export BOT_API_KEY="abcdefghijklmnopqrstuvwxyz"
+export TEMPLATES_AUTO_RELOAD="yes"
+EOF