Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
diaspora
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
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
Hide 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