forked from adafruit/adabot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
adabot.screenrc
20 lines (13 loc) · 882 Bytes
/
adabot.screenrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# SPDX-FileCopyrightText: 2017 Scott Shawcroft for Adafruit Industries
#
# SPDX-License-Identifier: MIT
# Screen startup file to start multiple commands under multiple screens.
# Start with "screen -c thisfilename"
screen -t flask 0 bash -c "source .env/bin/activate; source env.sh; export FLASK_APP=rosie-ci.py; flask run || sleep 1000"
# With a free ngrok account you will get a random subdomain.
# screen -t ngrok 1 ngrok http 5000
# Use this command with your own subdomain.
screen -t ngrok 1 bash -c "../ngrok http -subdomain=rosie-ci 5000 || sleep 1000"
screen -t celery_high 2 bash -c "source .env/bin/activate; source env.sh; celery -A rosie-ci.celery worker -n high -Q high || [ $? -eq 1 ] || sleep 1000"
screen -t celery_low 3 bash -c "source .env/bin/activate; source env.sh; celery -A rosie-ci.celery worker -n low -Q low || [ $? -eq 1 ] || sleep 1000"
detach