mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
Update humbughq.com => zulip.net in tools.
This shouldn't be pushed until we get graphite.zulip.net working. (imported from commit c0dd208222385a9ee92ad1ca8fbf141894f7c7b6)
This commit is contained in:
@@ -72,7 +72,7 @@ EOF2
|
||||
# clone humbug repository
|
||||
cd /root
|
||||
rm -rf /root/humbug
|
||||
git clone humbug@git.humbughq.com:/srv/git/humbug.git
|
||||
git clone humbug@git.zulip.net:/srv/git/humbug.git
|
||||
cd /root/humbug
|
||||
git checkout master
|
||||
EOF
|
||||
|
||||
@@ -24,12 +24,12 @@ function commit {
|
||||
}
|
||||
|
||||
cd ../message_logs
|
||||
for h in staging.humbughq.com app.humbughq.com; do
|
||||
for h in staging.zulip.net prod0.zulip.net; do
|
||||
rsync -v humbug@$h:logs/event_log/events.* .
|
||||
done
|
||||
git add events.*
|
||||
commit
|
||||
|
||||
cd ../trac
|
||||
rsync -v humbug@trac.humbughq.com:trac/db/trac.db .
|
||||
rsync -v humbug@trac.zulip.net:trac/db/trac.db .
|
||||
commit
|
||||
|
||||
@@ -24,10 +24,10 @@ def extract_json_response(resp):
|
||||
def get_data_url(buckets, realm):
|
||||
realm_key = statsd_key(realm, True)
|
||||
|
||||
# This is the slightly-cleaned up JSON api version of https://graphiti.humbughq.com/graphs/945c7aafc2d
|
||||
# This is the slightly-cleaned up JSON api version of https://graphiti.zulip.net/graphs/945c7aafc2d
|
||||
#
|
||||
# Fetches 1 month worth of data
|
||||
DATA_URL="https://graphite.humbughq.com/render/?from=-1000d&format=json"
|
||||
DATA_URL="https://graphite.zulip.net/render/?from=-1000d&format=json"
|
||||
for bucket in buckets:
|
||||
if realm != 'all':
|
||||
statsd_target = "stats.gauges.staging.users.active.%s.%s" % (realm_key, bucket)
|
||||
@@ -156,7 +156,7 @@ if __name__ == '__main__':
|
||||
realm_key = statsd_key(options.realm, True)
|
||||
buckets = [options.bucket]
|
||||
|
||||
# This is the slightly-cleaned up JSON api version of https://graphiti.humbughq.com/graphs/945c7aafc2d
|
||||
# This is the slightly-cleaned up JSON api version of https://graphiti.zulip.net/graphs/945c7aafc2d
|
||||
#
|
||||
# Fetches 1 month worth of data
|
||||
DATA_URL = get_data_url(buckets, options.realm)
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
# Humbug's post-receive hook. There is a symlink
|
||||
# from /srv/git/humbug.git/hooks/post-receive
|
||||
# to ~humbug/humbug/tools/post-receive
|
||||
# on git.humbughq.com. So to deploy changes to this script, run
|
||||
# on git.zulip.net. So to deploy changes to this script, run
|
||||
#
|
||||
# ssh humbug@git.humbughq.com 'cd humbug; git pull'
|
||||
# ssh humbug@git.zulip.net 'cd humbug; git pull'
|
||||
#
|
||||
# To send the Humbug notices, this script calls out to our
|
||||
# for-distribution git hook (under api/integrations/); since the git
|
||||
|
||||
@@ -43,7 +43,7 @@ deploy_path = os.path.join(DEPLOYMENTS_DIR, timestamp)
|
||||
|
||||
logging.info("Cloning the repository")
|
||||
subprocess.check_call(["git", "clone", "-q", "-b", refname,
|
||||
"humbug@git.humbughq.com:/srv/git/humbug.git",
|
||||
"humbug@git.zulip.net:/srv/git/humbug.git",
|
||||
deploy_path], stdout=open('/dev/null', 'w'))
|
||||
os.chdir(deploy_path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user