Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Passenger and RackBaseURI prefix #157

Open
AnthonyDiGirolamo opened this issue Feb 6, 2013 · 1 comment
Open

Passenger and RackBaseURI prefix #157

AnthonyDiGirolamo opened this issue Feb 6, 2013 · 1 comment

Comments

@AnthonyDiGirolamo
Copy link

I'm trying to deploy fulcrum using passenger 3.0.19 with apache and setting a prefix url of /fulcrum

All is well after I set:
config/application.rb: config.assets.initialize_on_precompile = true
and precompiled the assets with:
RAILS_RELATIVE_URL_ROOT="/fulcrum" bundle exec rake assets:precompile

I also had to make this change:

diff --git a/app/assets/javascripts/models/project.js b/app/assets/javascripts/models/project.js
index c1ac6f7..7f58d51 100644
--- a/app/assets/javascripts/models/project.js
+++ b/app/assets/javascripts/models/project.js
@@ -27,7 +27,7 @@ Fulcrum.Project = Backbone.Model.extend({
   },

   url: function() {
-    return '/projects/' + this.id;
+    return '/fulcrum/projects/' + this.id;
   },

   // The ids of the columns, in the order that they appear by story weight

I'm not sure the best way to solve this without hard-coding like in the above.

@Ranjandas
Copy link

Thanks man, your workaround fixed my issue #156 and i am sure your issue will be solved by my workaround 👍

just change your config.ru as shown in my issue.

also set config.server_static_assets = true in config/environments/production.rb

Things should work :)

Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants