|
@@ -6,8 +6,8 @@ import time
|
|
|
|
|
|
def start(args):
|
|
def start(args):
|
|
setup_util.replace_text("revel/src/benchmark/conf/app.conf", "tcp\(.*:3306\)", "tcp(" + args.database_host + ":3306)")
|
|
setup_util.replace_text("revel/src/benchmark/conf/app.conf", "tcp\(.*:3306\)", "tcp(" + args.database_host + ":3306)")
|
|
- subprocess.call("go get github.com/robfig/revel/cmd", shell=True, cwd="revel")
|
|
|
|
- subprocess.call("go build -o bin/revel github.com/robfig/revel/cmd", shell=True, cwd="revel")
|
|
|
|
|
|
+ subprocess.call("go get -u github.com/robfig/revel/revel", shell=True, cwd="revel")
|
|
|
|
+ subprocess.call("go build -o bin/revel github.com/robfig/revel/revel", shell=True, cwd="revel")
|
|
subprocess.Popen("bin/revel run benchmark prod".rsplit(" "), cwd="revel")
|
|
subprocess.Popen("bin/revel run benchmark prod".rsplit(" "), cwd="revel")
|
|
return 0
|
|
return 0
|
|
|
|
|