The relay server is now deployed on Heroku (repo located here), so the majority of the code in this repository is no longer used.
The only functionality that cannot be replicated on Heroku is the SSH tunneling, so this server is still deployed on Digital Ocean with the web facing services disabled.
The domain is now tunnel.heatseek.org
.
bash dev/init.sh
bash dev/run.sh
…
bash dev/stop.sh
Examples:
bash dev/db.sh
bash dev/db.sh < commands.sql
bash dev/db.sh pg_dump > dump.sql
ssh -p 2222 [email protected]
update-ssh-keys -a <name> < key.pem
Until we change the hub firmware to tunnel through a custom ssh port, we have to change the CoreOS ssh port to get out of the way. Currently we use 2222.
Ask a friend for the files to put in tunnel/secret/
. Then:
bash db/init.sh
for x in db tunnel app web; do
docker build --pull --tag=$x $x
sudo systemctl enable $PWD/$x/$x.service
sudo systemctl start $x
done
sudo systemctl enable $PWD/app/batch.service
sudo systemctl start batch
For most modules, e.g. for web
:
docker build --pull --tag web web
sudo systemctl restart web
The batch
module shares a lot of code with the app
module, so they use the same docker image:
docker build --pull --tag app app
sudo systemctl restart batch
Examples:
bash db/connect.sh
bash db/connect.sh < commands.sql
bash db/connect.sh pg_dump > dump.sql
systemctl status db tunnel app web batch
journalctl -ru web
docker exec -it tunnel ssh -p <port> localhost
docker exec tunnel netstat -a | grep ssh