summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVainsocial root <root@vainsocial>2017-03-07 18:07:05 +0000
committerVainsocial root <root@vainsocial>2017-03-07 18:07:05 +0000
commit0a8832239542c974d82bf45490bff0a7751c23b0 (patch)
tree8d3b792f2418e54cfa69e209247734890fef4ba0
parent861a4b3c6fd59ff2ba3a7b7d3bb54a12df4b3a47 (diff)
downloadmeta-0a8832239542c974d82bf45490bff0a7751c23b0.tar.gz
meta-0a8832239542c974d82bf45490bff0a7751c23b0.zip
deploy discordbot
-rw-r--r--.gitmodules3
m---------discordbot0
-rw-r--r--supervisord.conf19
3 files changed, 22 insertions, 0 deletions
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
+Subproject a0f3717ebee1467a305477613abb5bc0c2cb138
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=