Skip to content
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

Best practice for using this on Heroku? #10

Closed
adamrubin opened this issue Jul 29, 2013 · 6 comments
Closed

Best practice for using this on Heroku? #10

adamrubin opened this issue Jul 29, 2013 · 6 comments

Comments

@adamrubin
Copy link

I'm a little confused, and hope you can help. The generator installs all of the asset files in the gem directory, instead of the application. This is fine for development mode, but if I were to push to Heroku, those assets wouldn't exist on the production server.

Am I missing something? If not, what's the recommend course of action to solve that problem?

@Theminijohn
Copy link

I'm having this Problem 2 weeks now, I send also an inquiry to Designmodo. But Nothing.. No one seems to know or want to dig deeper. Always some styles and assets are getting messed up on heroku

@jehughes
Copy link

I on Webfaction rather than Heroku but my solution was to add the command rails generate flatuipro:install ~/dir to my Capistrano deployment script.

For me personally, I like that the assets are kept in the gem rather than being mixed in with the app's asset dir. Makes them easier to identify (to remove when the time comes), I don't have to deal with them in the .gitignore, and I get a sort of version control with each gem update.

@reflection
Copy link
Owner

I'm hoping that if I resolve #8 Heroku issues will also be resolved.

As you all surmised, this issue pops up because I don't package the Flat UI Pro assets in the gem. I can't because it's against the license (that's why the assets have to be copied over).

Assuming I could get the assets installed correctly in the rails app, you would then no longer need to include the gem itself.

I'll keep this issue open. After #8 is resolved, people using Heroku could let me know if this is fixed as well.

Of course, if you want this fixed quicker, please send me a pull request. Still crunched at both my jobs (9-5 and startup).

@patrickespake
Copy link

+1

1 similar comment
@akshatpradhan
Copy link

👍

@reflection
Copy link
Owner

With v1.1.3.1, when I precompile assets, add the public/assets dir to git and push to heroku, everything works.

RAILS_ENV=production rake assets:precompile

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

No branches or pull requests

6 participants