-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS/JS file bug #38
Comments
That's a strange one, right of the box i have no idea how that could even happened. I'll need to take a closer look. |
These errors occur, if your assets were not served by your webserver. As far as I know, Rails will not serve your assets in production. Solutions:
I guess this is not a bug of the plugin. |
The installation instruction contain this comment on point 4.
|
Actually i believe rails will in fact deliver assets in production from the public folder. It's just faster letting this the web server do it. If i start my local rails server in production mode i still get assets. |
Ok i tested a bit and i was able to reproduce your case. If i skip the plugin assets task, i'll get the same error. So did you by any chance forgot the environment setting (always add RAILS_ENV=production to the tasks)? Also check if you plugin_assets folder contains a redmine_hourglass directory and the stylesheets and javascripts are below this each in its own folder. |
I'll fixed a thing, so you will now get atleast a proper error with "missing /plugin_assets/redmine_hourglass/application.css" instead of the "/plugin_assets/redmine_hourglass/.css". But i can't do more than that and to tell you, to try asset creation again :) |
Thanks for the help guys, but I still got the issue. @jume-dev 's update helped with the output, but I still can't understand what is the problem here.
After that, I looked to see if assets were created and got that:
However, the MD5-like sufix is not present while importing the files, so I got the same error again:
After some observation on the log, I noticed this other error as well:
|
That context menu issue is because of the missing javascript, that goes away, if the assets are working. But for you problem itself, i am honestly pretty clueless. I assume something messes with the asset generation, which could be either a gem or an other plugin. Ok, so first please take a look if you have the Please report your sprockets version ( And lastly please try the whole process with only our own plugin in it to see if any of the other plugins is causing the issue. |
There is a
I'll be removing the other plugins and I return to you with the outcome. |
Ok... It was a conflict between the plugins. After I removed all of them it worked just fine. |
Nah, its ok. tell me more, what did you find out? Maybe i can make some of the code in this plugin more robust to work better with other plugins. |
@arendhil sry to bother you, but i am really interested in this and my comment got submitted before i finished my text, so i guess the email with "nah" was not very encouraging. Did you find anything out, which plugin caused the problems? |
In fact, @jume-dev. It is quite weird. I thought it was a conflict as I ran redmine with Unfortunately, I couldn't get closer to the reasons behind this for now. |
I'm using:
I installed the hourglass plugin by git clone, did the migration and asset command with rake, all reporting no error. So, I restarted redmine, allowed the plugin in my projects and also set the permissions for the respectives groups/roles. However, the plugin is working abnormally and I keep getting this error:
There is a plugin_assets folder with stylesheets and javascripts subfolder and a few files in them that might have been created by the
rake redmine:plugins:assets
commandThe text was updated successfully, but these errors were encountered: