Skip to content

Commit

Permalink
fix create project path logic
Browse files Browse the repository at this point in the history
  • Loading branch information
tka committed Feb 4, 2013
1 parent a8f3a15 commit 16c8143
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hosting_server/config.ru
Expand Up @@ -22,11 +22,10 @@ class TheHoldApp

site_key = "site-" + env["HTTP_HOST"].split(/:/).first
site = @redis.hgetall(site_key)
current_project_path = File.join(@base_path, site["login"], site["project"], "current")

return not_found if !( site["login"] && site["project"] && env["PATH_INFO"] != '/AUTH' )
return upload_file(req.params) if env["PATH_INFO"] == '/upload'

current_project_path = File.join(@base_path, site["login"], site["project"], "current")
if site["auth_yaml"]
auth_yaml = YAML.load( site["auth_yaml"] )
if req.post? && req.params["login"] && req.params["password"]
Expand Down

0 comments on commit 16c8143

Please sign in to comment.