Skip to content

Commit 7307372

Browse files
committed
Add exporter to export data in prod
1 parent 633e138 commit 7307372

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

config/deploy.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,17 @@ accessories:
104104
- "/tmp/migration_data/db_migration_data.csv:/rails/db/data/db_migration_data.csv:ro"
105105
# Mount the SAME storage volume as the main app to access the database
106106
- "telegram_spam_sniper_bot_storage:/rails/storage"
107+
exporter:
108+
host: 192.168.1.188
109+
image: samrayleung/telegram_spam_sniper_bot
110+
cmd: bin/rails export:trained_messages RAILS_ENV=production
111+
env:
112+
secret:
113+
- RAILS_MASTER_KEY
114+
volumes:
115+
- "/tmp/migration_data:/rails/db/data"
116+
# Mount the SAME storage volume as the main app to access the database
117+
- "telegram_spam_sniper_bot_storage:/rails/storage"
107118
backfiller:
108119
host: 192.168.1.188
109120
image: samrayleung/telegram_spam_sniper_bot

0 commit comments

Comments
 (0)