mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +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
|
# clone humbug repository
|
||||||
cd /root
|
cd /root
|
||||||
rm -rf /root/humbug
|
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
|
cd /root/humbug
|
||||||
git checkout master
|
git checkout master
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
@@ -24,12 +24,12 @@ function commit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cd ../message_logs
|
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.* .
|
rsync -v humbug@$h:logs/event_log/events.* .
|
||||||
done
|
done
|
||||||
git add events.*
|
git add events.*
|
||||||
commit
|
commit
|
||||||
|
|
||||||
cd ../trac
|
cd ../trac
|
||||||
rsync -v humbug@trac.humbughq.com:trac/db/trac.db .
|
rsync -v humbug@trac.zulip.net:trac/db/trac.db .
|
||||||
commit
|
commit
|
||||||
|
|||||||
@@ -24,10 +24,10 @@ def extract_json_response(resp):
|
|||||||
def get_data_url(buckets, realm):
|
def get_data_url(buckets, realm):
|
||||||
realm_key = statsd_key(realm, True)
|
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
|
# 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:
|
for bucket in buckets:
|
||||||
if realm != 'all':
|
if realm != 'all':
|
||||||
statsd_target = "stats.gauges.staging.users.active.%s.%s" % (realm_key, bucket)
|
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)
|
realm_key = statsd_key(options.realm, True)
|
||||||
buckets = [options.bucket]
|
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
|
# Fetches 1 month worth of data
|
||||||
DATA_URL = get_data_url(buckets, options.realm)
|
DATA_URL = get_data_url(buckets, options.realm)
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
# Humbug's post-receive hook. There is a symlink
|
# Humbug's post-receive hook. There is a symlink
|
||||||
# from /srv/git/humbug.git/hooks/post-receive
|
# from /srv/git/humbug.git/hooks/post-receive
|
||||||
# to ~humbug/humbug/tools/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
|
# To send the Humbug notices, this script calls out to our
|
||||||
# for-distribution git hook (under api/integrations/); since the git
|
# 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")
|
logging.info("Cloning the repository")
|
||||||
subprocess.check_call(["git", "clone", "-q", "-b", refname,
|
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'))
|
deploy_path], stdout=open('/dev/null', 'w'))
|
||||||
os.chdir(deploy_path)
|
os.chdir(deploy_path)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user