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

Rails 5 #37

Open
Alphabetus opened this issue Nov 3, 2019 · 1 comment
Open

Rails 5 #37

Alphabetus opened this issue Nov 3, 2019 · 1 comment

Comments

@Alphabetus
Copy link

Its a pitty that we cant use it on Rails 5 too.

@MyklClason
Copy link

MyklClason commented Mar 31, 2020

Hmmm, just set this up on Rails 5? Here is how I went about it:

  1. Add the gem per instructions
  2. Copy the config from the website.
  3. Add path to the master file within the config. I used /app/assets/images/favicons/master.png. The favicons were created in the /app/assets/images/favicon/ folder. Seems useful to keep the master out of that folder as it has lots of files in it, so left it as it was. Could have also left it in the images folder as "favicon_master.png but easy to end up with lots of images there too.
  4. Increase the timeout from 30 seconds to 100 seconds via rails generate favicon -t 100 as per the instructions in the timeout error. Seems 30 seconds may not be enough to generate the favicons and run the generator. I could see that going up to 300 seconds in some cases.

The error said (at the end of the stack trace):
Operation timed out after 30 seconds, pass a -t option for a longer timeout (RuntimeError)

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

2 participants