saucelabs/slacktalker

Name: slacktalker

Owner: Sauce Labs

Description: null

Created: 2015-12-10 21:08:31.0

Updated: 2016-05-23 17:04:42.0

Pushed: 2015-12-11 01:19:43.0

Homepage: null

Size: 24

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

About

This runs on slacktalker.dev.saucelabs.net. The main web application is running via nginx and uwsgi. All code is deployed under the sauce user. There's no fancy upstart script for uwsgi – it's just running as a background job.

After a day or so, the web application seems to quit working. I wouldn't be surprised if this is related to mysql having gone away, but I can't see the traceback for the error. There's a cron job to restart the web process every few hours. It's a terrible hack, but oh well. 2 nines of availability should be enough.

Loading New Data

Unfortunately, we don't have a Slack Plus account, so loading new chat data must be done semi-manually. Basically, get an export from here: https://get.slack.help/hc/en-us/articles/201658943-Exporting-your-team-s-Slack-history

Drop the zip file in /home/sauce/slack-export.zip and make sure the owner and group are both sauce. The cron jobs should load the new data automatically.

Deploying

As your user, run update_repo.sh to change to the sauce user and pull down the latest git commit. You'll need to have SSH agent forwarding enabled when connecting to the box. Then, change to the sauce user and run launch_uwsgi.sh.

Files

Setup / Deployment
Data-loading

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.