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

can't get assets #109

Closed
tachyon-ops opened this issue Nov 10, 2014 · 6 comments
Closed

can't get assets #109

tachyon-ops opened this issue Nov 10, 2014 · 6 comments

Comments

@tachyon-ops
Copy link

Hi,

I've managed to pinpoint why.. I am using http://ip/basedir/assets/...

Where can I change the app basedir?

Thanks :)

edit *not the app basedir, but the url for the assets perhaps?

@tachyon-ops
Copy link
Author

Further info:

GET fontawesome-webfont-9fdf...6aefdb0d503cc72528a.ttf
200 OK 109.5 KB ( ip/brimir/assets/... )

GET /brimir/
200 OK 2.2 KB

GET fontawesome-webfont-7b07...6332129d46.woff?v=4.2.0
404 Not Found 262 B ( ip/assets/... )

GET fontawesome-webfont-9fdf...503cc72528a.ttf?v=4.2.0
404 Not Found 261 B ( ip/assets/... )

@frenkel
Copy link
Contributor

frenkel commented Nov 10, 2014

Good find. That is a problem in the fontawesome-rails gem. I believe you can fix it like this:
bokmann/font-awesome-rails#74 (comment)

If that doesn't help, please open an issue there, as I cannot solve it.

@frenkel frenkel closed this as completed Nov 10, 2014
@tachyon-ops
Copy link
Author

Great... fixed most of fontawesome problems (now I see icons...) but... having a problem with tinymce now. also "ip/assets/tinymce" I've checked on new browsers to be sure it was not a browser issue (cache and so on..)

@frenkel
Copy link
Contributor

frenkel commented Nov 10, 2014

I believe you should set RAILS_RELATIVE_URL_ROOT=/brimir in your server configuration (for example set_env RAILS_RELATIVE_URL_ROOT, '/brimir' in apache2)

@tachyon-ops
Copy link
Author

that seams too drastic... what if I have more rails apps?

@frenkel
Copy link
Contributor

frenkel commented Nov 11, 2014

set_env can be used in a location directive, thereby limiting it to only the brimir application.

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