-
Notifications
You must be signed in to change notification settings - Fork 252
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
How to support rails 4 asset pipeline #104
Comments
Are their any plans for this? I didn't use this gem because I have a rails 4 app deployed and I can't seem to get it working properly on Heroku. Looks like the paths are wrong. Seems like this gem has that figured out. Note: I'm also using active admin |
This was a huge pain in the butt. Here's my solution: In your application css file add:
Note, I'm using sass so for a regular css file it will be different. Then within you application.rb make sure that you compile the assets in the proper order. Mainly have redactor compile first.
Finally run:
I use trace as a just in case. Then deploy to heroku or what ever. Now that you have the solution let me explain why this works. Redactors assets will not be added into the precompiled css files if it is not compiled before they are. Also they are not compiling in the heroku push properly, I'm using a custom deploy strat so it may be different for y'all. Remember to precompile before heroku push. |
I'll work on that soon. |
+1 Thanks for the temporary fix izakfilmalter |
+1 Thanks for the temp fix izakfilmalter |
+1 |
1 similar comment
👍 |
For Rails 4.x in production and with a custom config, I have to replace this line in application.js:
By these lines:
To explicitly say use my own config.js and not the default config. |
not working on production mode.
The text was updated successfully, but these errors were encountered: