|
|
@@ -7,13 +7,13 @@ from os.path import expanduser
|
|
|
home = expanduser("~")
|
|
|
|
|
|
def start(args, logfile, errfile):
|
|
|
- setup_util.replace_text("php-yii2/index.php", "localhost", ""+ args.database_host +"")
|
|
|
+ setup_util.replace_text("php-yii2/app/index.php", "localhost", ""+ args.database_host +"")
|
|
|
setup_util.replace_text("php-yii2/deploy/nginx.conf", "root .*\/FrameworkBenchmarks", "root " + home + "/FrameworkBenchmarks")
|
|
|
|
|
|
try:
|
|
|
if os.name == 'nt':
|
|
|
subprocess.check_call('icacls "C:\\FrameworkBenchmarks\\php-yii2" /grant "IIS_IUSRS:(OI)(CI)F"', shell=True, stderr=errfile, stdout=logfile)
|
|
|
- subprocess.check_call('appcmd add site /name:PHP /bindings:http/*:8080: /physicalPath:"C:\\FrameworkBenchmarks\\php-yii2\\public"', shell=True, stderr=errfile, stdout=logfile)
|
|
|
+ subprocess.check_call('appcmd add site /name:PHP /bindings:http/*:8080: /physicalPath:"C:\\FrameworkBenchmarks\\php-yii2\\app"', shell=True, stderr=errfile, stdout=logfile)
|
|
|
return 0
|
|
|
subprocess.check_call("sudo chown -R www-data:www-data php-yii2", shell=True, stderr=errfile, stdout=logfile)
|
|
|
subprocess.check_call("sudo php-fpm --fpm-config config/php-fpm.conf -g " + home + "/FrameworkBenchmarks/php-yii2/deploy/php-fpm.pid", shell=True, stderr=errfile, stdout=logfile)
|