Skip to content

Commit

Permalink
setup file wasn't rewriting home directory
Browse files Browse the repository at this point in the history
  • Loading branch information
pfalls1 committed Apr 2, 2013
1 parent 4a71115 commit 34b0566
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cake/deploy/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ http {
# proxy_pass http://127.0.0.1;
#}

root /home/ubuntu/FrameworkBenchmarks/cake/app/webroot/;
root /home/ubuntu/FrameworkBenchmarks/cake/app/webroot/;
index index.php;

location / {
Expand Down
1 change: 1 addition & 0 deletions cake/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def start(args):
setup_util.replace_text("cake/app/Config/database.php", "'host' => '.*',", "'host' => '" + args.database_host + "',")
setup_util.replace_text("cake/deploy/cake", "\".*\/FrameworkBenchmarks", "\"" + home + "/FrameworkBenchmarks")
setup_util.replace_text("cake/deploy/cake", "Directory .*\/FrameworkBenchmarks", "Directory " + home + "/FrameworkBenchmarks")
setup_util.replace_text("cake/deploy/nginx.conf", "root .*\/FrameworkBenchmarks", "root " + home + "/FrameworkBenchmarks")

try:
#subprocess.check_call("sudo cp cake/deploy/cake /etc/apache2/sites-available/", shell=True)
Expand Down
2 changes: 1 addition & 1 deletion php/deploy/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ http {
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
root /home/ubuntu/FrameworkBenchmarks/php;
root /home/ubuntu/FrameworkBenchmarks/php;
fastcgi_pass 127.0.0.1:9001;
fastcgi_index index.php;
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
Expand Down

0 comments on commit 34b0566

Please sign in to comment.