zulip/tools
Luke Faraone 7b75dd9cc4 Use different mechanism to determine the running user
Per http://docs.python.org/2/library/os.html#os.getlogin, getlogin()
only works when you have an associated controlling tty.

This script didn't work previously because when we do deployments there
is no tty. Thus, we switch to the alternative mechanism for determining
the current username described on the page linked above.

(imported from commit 1dbcf98fd7248d20e501fd7fb22e1dbd306040fd)
2013-06-19 16:35:35 -04:00
..
humbug_tools update-deployment: Move color codes to humbug_tools.py. 2013-06-04 18:42:00 -04:00
inject-messages Consistently use #!/usr/bin/env python 2013-02-20 16:02:30 -05:00
jslint Tweak desktop app JS to support Cocoa WebScript 2013-06-14 10:46:26 -04:00
print-all puppet: Move all puppetized config files to the humbug module and reference them with puppet URLs 2013-02-08 16:06:34 -05:00
backup Add tool used for backing up wiki, trac, events. 2013-04-17 10:19:13 -04:00
build-api-tarball [manual] Include the events API in the API tarballs. 2013-06-04 15:53:36 -04:00
check-all Check for whitespace in check-all. 2013-05-31 15:25:35 -04:00
clean-branches clean-branches: Print the abbrev SHA for of each deleted ref 2012-11-06 15:45:24 -05:00
clean-repo Add a tool for removing stale *.pyc files 2012-10-12 13:28:09 -04:00
deploy-branch deploy-branch: Check out original ref by name if possible 2013-03-27 14:15:03 -04:00
django-template-graph django-template-graph: Replace slashes with newlines 2012-10-16 01:45:37 -04:00
do-destroy-rebuild-database Sync the local user's API key into test database. 2013-06-12 16:21:10 -04:00
do-destroy-rebuild-test-database [manual] Humbug testing databases now backed by postgres 2013-05-20 23:55:03 -04:00
generate-activity-metrics.py generate-activity-metrics: Use a long time horizon. 2013-06-18 14:59:07 -04:00
humbug-puppet-apply humbug-puppet-apply: Pass through arguments like --noop to puppet. 2013-06-12 17:19:33 -04:00
merge-messages-logs Consistently use #!/usr/bin/env python 2013-02-20 16:02:30 -05:00
msmtprc.example Add example msmtprc 2012-10-30 15:40:10 -04:00
munge_postgres_logs.pl Make munge_postgres_logs.pl executable 2013-01-29 12:16:32 -05:00
node Add a generic script to run the right Node binary 2013-02-20 16:02:30 -05:00
post-commit Add pre-commit and post-commit hooks for use on dev systems. 2013-05-30 10:29:44 -04:00
post-receive update-deployment: Move Schema change detected to post-receive. 2013-06-04 18:42:00 -04:00
postgres-init-db postgres-init-db: Auto-detect whether we need to use sudo. 2013-05-22 14:58:43 -04:00
postgres-init-test-db [manual] Humbug testing databases now backed by postgres 2013-05-20 23:55:03 -04:00
pre-commit Add pre-commit and post-commit hooks for use on dev systems. 2013-05-30 10:29:44 -04:00
purge-deployments Add tool to purge old deployments 2013-05-17 01:02:34 -04:00
restart-server Use different mechanism to determine the running user 2013-06-19 16:35:35 -04:00
review [manual] Modify review to allow testing+review in the background 2013-06-06 17:36:02 -04:00
run-dev.py [manual] Add get_events URL routing 2013-03-28 16:48:52 -04:00
run-graphiti Add supervisor conf file for stats 2013-06-03 16:16:22 -04:00
setup-git-repo Add pre-commit and post-commit hooks for use on dev systems. 2013-05-30 10:29:44 -04:00
test-all test-all: Run frontend tests after backend tests. 2013-04-02 16:27:13 -04:00
test-backend [manual] Modify review to allow testing+review in the background 2013-06-06 17:36:02 -04:00
update-deployment Move the current deployment symlink in restart-server 2013-06-05 16:33:43 -04:00
update-prod-static Collect static files directly in the location that will be served 2013-06-12 17:46:38 -04:00