Browse Source

clean up setup

Joel Berger 11 years ago
parent
commit
5cf5c6028b
1 changed files with 2 additions and 5 deletions
  1. 2 5
      mojolicious/setup.py

+ 2 - 5
mojolicious/setup.py

@@ -1,6 +1,5 @@
 import subprocess
 import subprocess
 import sys
 import sys
-#import setup_util
 import json
 import json
 from os.path import expanduser
 from os.path import expanduser
 import os
 import os
@@ -9,11 +8,9 @@ import getpass
 home = expanduser("~")
 home = expanduser("~")
 
 
 def start(args, logfile, errfile):
 def start(args, logfile, errfile):
-  # setup_util.replace_text("mojolicious/app.pl", "localhost", ""+ args.database_host +"")
-  # str(args.max_threads)
   conf = { 
   conf = { 
-    'database_host': args.database_host,
-    'workers': args.max_threads,
+    'database_host' : args.database_host,
+    'workers'       : args.max_threads,
   }
   }
   with open('mojolicious/app.conf', 'w') as f:
   with open('mojolicious/app.conf', 'w') as f:
     f.write(json.dumps(conf))
     f.write(json.dumps(conf))