-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Allow dashing to run on sub-path by using relative urls #209
Conversation
Fixes #206 |
Allow dashing to run on sub-path by using relative urls
Thanks I'll submit a PR with a suggestion to wiki page when the merge is released. |
@micpango What exactly do you need to do to get Dashing running under a sub-path? I currently get a blank page (I do see the html of the widgets in the source),because it can't find /assets/application.js or /assets/application.css. Also is a subdomain considered a sub-path? I'm trying to get dashing to run under something like dashing.domain.com. Would I need to use dashing from master and use assets_prefix (asset_prefix: "/dashing/assets/" ?), more than just that or wouldn't that be possible? I'm using Nginx + Passenger btw. |
This is for sub-path (e.g. domain.com/dashing/). With sub-domain you will still run your app on "/", so this wouldn't be necessary I guess. Other than changing the assets_prefix, I also had to override the Batman.config.viewPrefix. I did this in application.coffee. I use Rack::URLMap for running app on sub-path. |
@micpango did you ever find the time to write that wiki post? I would also be interested on how to run this on sub path. |
@joscarsson Yes, I definitely need to get around to doing that. Will try to have it out by the end of the week. |
@davefp Finally got around to creating a small wiki page on this one. |
Thanks! Great! |
This is very minor, but I would add this to your page of instructions: Update images path by editing widgets/image/image.html to:
|
A minor change that solved our only problem with running dashing on a sub-path.