- Notifications
You must be signed in to change notification settings - Fork2
A Hipchat bot for accessing Glassfrog
License
NotificationsYou must be signed in to change notification settings
wardweistra/hipfrog
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
An open sourceHipchat bot for accessing theHolacracy toolGlassfrog.
Followhttps://marketplace.atlassian.com/plugins/hipfrog to install the plugin in your Hipchat room.
Hipfrog is usingGlassfrog API V3 beta. Tested on Python 3.5.2.
- Download:
git clone https://github.com/wardweistra/hipfrog.git
- Install:
python3 setup.py install
- Create and upgrade the database withFlask-Migrate. Tested on Postgres.
- Test:
python3 tests/glassfrog_tests.py
- Run:
python3 runserver.py --debug
Default settings are found atglassfrog/settings/config.py. Set your own by following the steps insettings.cfg.
Hipfrog can be deployed to run your own managed version of it with Apache2.
Example hipfrog.wsgi (at /var/www/hipfrog/ where application at /var/www/hipfrog/hipfrog/ and dependencies installed with virtualenv):
#!/usr/bin/env python3activate_this = '/var/www/hipfrog/hipfrog/venv/bin/activate_this.py'with open(activate_this) as file_: exec(file_.read(), dict(__file__=activate_this))import sysimport loggingimport oslogging.basicConfig(stream=sys.stderr)sys.path.insert(0,"/var/www/hipfrog/hipfrog/")os.environ["HIPFROG_SETTINGS"] = "/var/www/hipfrog/hipfrog/prod_settings.cfg"from glassfrog import app as application
Example hipfrog.conf (at /etc/apache2/sites-available):
WSGIPythonHome "/var/www/hipfrog/hipfrog/venv/bin"WSGIPythonPath "/var/www/hipfrog/hipfrog/venv/lib/python3.5/site-packages"Listen 45277<VirtualHost *:443> ServerName host.wardweistra.nl ServerAdmin w@rdweistra.nl WSGIScriptAlias /hipfrog /var/www/hipfrog/hipfrog.wsgi WSGIDaemonProcess hipfrog-ssl user=ward threads=5 <Directory /var/www/hipfrog/hipfrog/> Order allow,deny Allow from all </Directory> Alias /static /var/www/hipfrog/hipfrog/glassfrog/static <Directory /var/www/hipfrog/hipfrog/glassfrog/static/> Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combinedSSLCertificateFile /etc/letsencrypt/live/host.wardweistra.nl/fullchain.pemSSLCertificateKeyFile /etc/letsencrypt/live/host.wardweistra.nl/privkey.pemInclude /etc/letsencrypt/options-ssl-apache.conf</VirtualHost>