Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-10-31 00:57:02 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-10-31 00:57:02 (GMT)
commitf85e6653b6fcd737a9b7076d36c7658212ea2031 (patch)
tree26f5c2bfee146099cceea8626ad8ca5ec7c98698
parenta46643064c7b34480f903d82c75bfdd03844db2d (diff)
Update maintenance scripts
-rw-r--r--aslo/config.php2
-rwxr-xr-xaslo/maintenance.sh26
-rwxr-xr-xbin/build.py4
3 files changed, 16 insertions, 16 deletions
diff --git a/aslo/config.php b/aslo/config.php
index 452baae..7539ee4 100644
--- a/aslo/config.php
+++ b/aslo/config.php
@@ -90,7 +90,7 @@ define('SITE_STATE', 'dev');
* Host, including http://. Should be everything leading up to addon ids.
* Example: http://releases.mozilla.org/addons
*/
-define('FILES_HOST', 'http://download.sugarlabs.org/sources/activities');
+define('FILES_HOST', 'http://download.sugarlabs.org/activities');
/**
* Relative web path of the files directory. Tacking this on to FILES_HOST should get you
diff --git a/aslo/maintenance.sh b/aslo/maintenance.sh
index 7986cbc..8982516 100755
--- a/aslo/maintenance.sh
+++ b/aslo/maintenance.sh
@@ -5,29 +5,27 @@ logfile=$root/data/parse
cd $root/bin
-php -f parse_logs/parse_logs.php \
- logs=$root/data/ \
- temp=/tmp \
- type=downloads \
- date=$(date --date=yesterday +%Y%m%d) \
- geo=US v=v > $logfile
+for type in downloads updatepings; do
+ php -f parse_logs/parse_logs.php \
+ logs=$root/data/ \
+ temp=/tmp \
+ type=$type \
+ date=$(date --date=yesterday +%Y%m%d) \
+ geo=US v=v > $logfile
+done
php -f maintenance.php weekly >> $logfile
php -f maintenance.php total >> $logfile
-php -f maintenance.php ADU >> $logfile
php -f maintenance.php gc >> $logfile
#php -f maintenance.php publish_files
php -f maintenance.php reviews >> $logfile
-php -f maintenance.php user_ratings >> $logfile
php -f maintenance.php ratings >> $logfile
php -f maintenance.php unconfirmed >> $logfile
php -f maintenance.php expired_resetcode >> $logfile
-php -f maintenance.php addons_collections_total >> $logfile
+#php -f maintenance.php addons_collections_total >> $logfile
#php -f maintenance.php collections_total >> $logfile
-php -f maintenance.php collections_ratings >> $logfile
-php -f maintenance.php share_count_totals >> $logfile
-php -f maintenance.php category_totals >> $logfile
+php -f maintenance.php tag_totals >> $logfile
php -f maintenance.php global_stats >> $logfile
-php -f maintenance.php collection_stats >> $logfile
php -f maintenance.php collection_subscribers >> $logfile
-php -f update-search-views.php >> $logfile
+
+#php -f update-search-views.php >> $logfile
diff --git a/bin/build.py b/bin/build.py
index 99e0799..f2e80f3 100755
--- a/bin/build.py
+++ b/bin/build.py
@@ -193,7 +193,7 @@ class Minifier(object):
source -- path of source file
destination -- path of destination file
"""
- compressor = Popen([java, '-jar', os.path.join(script_dir, 'yuicompressor-2.3.4', 'build', 'yuicompressor-2.3.4.jar'),
+ compressor = Popen([java, '-jar', os.path.join(script_dir, '..', 'lib', 'yuicompressor', 'build', 'yuicompressor.jar'),
'--type', type, source], stdout=PIPE)
destFile = open(destination, 'w')
# Fix media queries to look like "(..) and (..)", NOT "(..) and(..)".
@@ -282,7 +282,9 @@ def main(argv = None):
print "Usage: %s path_to_jre" % argv[0]
sys.exit(1)
+ #updateRevisions()
concatAndMinify()
+ #compilePo()
print 'Done.'