Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Milan
diaspora
Commits
18827b40
Commit
18827b40
authored
Jan 09, 2011
by
Alec Leamas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mount application on proper location
Uses mapping in config.ru to respect sub-uri settings in pod_uri.
parent
685b8092
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
config.ru
config.ru
+6
-2
config/initializers/sub_uri.rb
config/initializers/sub_uri.rb
+8
-0
No files found.
config.ru
View file @
18827b40
...
...
@@ -7,5 +7,9 @@
require
::
File
.
expand_path
(
'../config/environment'
,
__FILE__
)
#use Rack::FiberPool
require
::
File
.
expand_path
(
'../lib/chrome_frame'
,
__FILE__
)
use
Rack
::
ChromeFrame
,
:minimum
=>
8
run
Diaspora
::
Application
map
AppConfig
[
:pod_uri
].
path
do
use
Rack
::
ChromeFrame
,
:minimum
=>
8
use
Rack
::
ShowExceptions
run
Diaspora
::
Application
end
config/initializers/sub_uri.rb
0 → 100644
View file @
18827b40
p
=
AppConfig
[
:pod_uri
].
path
if
p
and
not
p
.
empty?
and
p
!=
"/"
Rails
.
application
.
routes
.
default_url_options
=
{
:script_name
=>
p
}
else
p
=
nil
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment