From 0a8832239542c974d82bf45490bff0a7751c23b0 Mon Sep 17 00:00:00 2001 From: Vainsocial root Date: Tue, 7 Mar 2017 18:07:05 +0000 Subject: deploy discordbot --- .gitmodules | 3 +++ discordbot | 1 + supervisord.conf | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+) create mode 160000 discordbot diff --git a/.gitmodules b/.gitmodules index 8a05ad0..24447b6 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,3 +7,6 @@ [submodule "statscompiler"] path = statscompiler url = https://github.com/vainglorygame/statscompiler +[submodule "discordbot"] + path = discordbot + url = https://github.com/vainglorygame/discordbot diff --git a/discordbot b/discordbot new file mode 160000 index 0000000..a0f3717 --- /dev/null +++ b/discordbot @@ -0,0 +1 @@ +Subproject commit a0f3717ebee1467a305477613abb5bc0c2cb1380 diff --git a/supervisord.conf b/supervisord.conf index 6b16a49..9f913e7 100644 --- a/supervisord.conf +++ b/supervisord.conf @@ -52,3 +52,22 @@ environment= POSTGRESQL_DEST_DB=vain_web, POSTGRESQL_DEST_USER=vainweb, POSTGRESQL_DEST_PASSWORD= + + +[program:vainsocial-discordbot] +user=vainsocial +command=/vainsocial/discordbot/venv/bin/python /vainsocial/discordbot/main.py +redirect_stderr=true +stdout_logfile=/vainsocial/logs/discordbot.log +environment= + VAINSOCIAL_DISCORDTOKEN="", + POSTGRESQL_SOURCE_HOST=, + POSTGRESQL_SOURCE_PORT=5433, + POSTGRESQL_SOURCE_DB=vain_raw, + POSTGRESQL_SOURCE_USER=vainraw, + POSTGRESQL_SOURCE_PASSWORD=, + POSTGRESQL_DEST_HOST=, + POSTGRESQL_DEST_PORT=5433, + POSTGRESQL_DEST_DB=vain_web, + POSTGRESQL_DEST_USER=vainweb, + POSTGRESQL_DEST_PASSWORD= -- cgit v1.3.1