summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2013-01-05 09:18:52 +0100
committerYorhel <git@yorhel.nl>2013-01-05 09:18:52 +0100
commit7c55fcf72ce31c3f91e6156f533fe36022bf6dfa (patch)
tree66b178d9736567c956de2f40c81cd04dec830f94
parent0b7d6e64f656c333c7f0931e47a76914e3684d43 (diff)
Move api/tags.json.gz to the main domain
I forgot that the static domain is only intended for files that are never modified. Or at least, not without a URL change. The tags.json.gz doesn't fit into that.
-rw-r--r--Makefile4
-rw-r--r--data/docs/142
-rw-r--r--lib/Multi/APIDump.pm2
3 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index fbb866fc..318fbb13 100644
--- a/Makefile
+++ b/Makefile
@@ -43,7 +43,7 @@
all: dirs js skins robots data/config.pl
-dirs: static/api static/f/js static/ch static/cv static/sf static/st data/log www www/feeds
+dirs: static/f/js static/ch static/cv static/sf static/st data/log www www/feeds www/api
js: static/f/js/en.js
@@ -55,7 +55,7 @@ static/ch static/cv static/sf static/st:
mkdir $@;
for i in $$(seq -w 0 1 99); do mkdir "$@/$$i"; done
-static/api static/f/js data/log www www/feeds:
+static/f/js data/log www www/feeds www/api:
mkdir $@
static/f/js/en.js: data/script.js data/lang.txt util/jsgen.pl data/config.pl data/global.pl
diff --git a/data/docs/14 b/data/docs/14
index 291f331f..7bc8e32d 100644
--- a/data/docs/14
+++ b/data/docs/14
@@ -11,7 +11,7 @@
:SUB:Tags
<p>
- <b>URL:</b> <a href="http://s.vndb.org/api/tags.json.gz">http://s.vndb.org/api/tags.json.gz</a><br />
+ <b>URL:</b> <a href="http://vndb.org/api/tags.json.gz">http://vndb.org/api/tags.json.gz</a><br />
<b>Updated:</b> Every 24 hours.<br />
<b>Size:</b> ~150 KiB compressed, ~520 KiB uncompressed.<br />
This dump includes information about all (approved) VN tags in the JSON
diff --git a/lib/Multi/APIDump.pm b/lib/Multi/APIDump.pm
index c61304b6..22f02bad 100644
--- a/lib/Multi/APIDump.pm
+++ b/lib/Multi/APIDump.pm
@@ -21,7 +21,7 @@ sub spawn {
],
heap => {
regenerate_interval => 86400, # daily min.
- tagsfile => "$VNDB::ROOT/static/api/tags.json.gz",
+ tagsfile => "$VNDB::ROOT/www/api/tags.json.gz",
@_,
},
);