Skip to content

Commit e0171a2

Browse files
committedMay 17, 2017
Возможность использования множества токенов
1 parent 6a65621 commit e0171a2

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed
 

‎heroku.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
#!/bin/bash
2-
celery worker -A app.celery -c 1 &
2+
3+
for TOKEN in $TOKENS
4+
do
5+
export ACCESS_TOKEN=$TOKEN
6+
celery worker -A app.celery -c 1 &
7+
done
8+
39
gunicorn -b "0.0.0.0:$PORT" app:app

‎requirements.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
flask
22
Flask-Caching
3-
celery
4-
redis
3+
celery[redis]
54
vk-api
65
python-dotenv
76
gunicorn

0 commit comments

Comments
 (0)
Please sign in to comment.