summaryrefslogtreecommitdiff
path: root/web/lib
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2011-10-10 20:38:34 +0200
committerJochen Topf <jochen@topf.org>2011-10-10 20:38:34 +0200
commit37218f57f1b53a5f0b1a3d4e4444e8d80b5d667c (patch)
treecbd6b41d6696e7e7a2df009c6470df152b4b3dfe /web/lib
parent82c320568448206a65816cb602dfa8f8a3399c1e (diff)
downloadtaginfo-37218f57f1b53a5f0b1a3d4e4444e8d80b5d667c.tar
taginfo-37218f57f1b53a5f0b1a3d4e4444e8d80b5d667c.tar.gz
Add taginfo-config.rb to read config from command line.
I added bin/taginfo-config.rb to easily access the config file from the command line. This is now used in sources/db/update.sh and sources/update_all.sh. This, again, reduces the places in the distribution where things needed to be changed for each instance.
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/config.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/config.rb b/web/lib/config.rb
index 135337d..c901921 100644
--- a/web/lib/config.rb
+++ b/web/lib/config.rb
@@ -5,7 +5,7 @@ class TaginfoConfig
@@config = {}
def self.read
- open('../../taginfo-config.json') do |file|
+ open(File.expand_path(File.dirname(__FILE__)) + '/../../../taginfo-config.json') do |file|
@@config = JSON.parse(file.gets(nil))
end
end