Setting route scoped to dev env, but config in application.rb #145
Replies: 3 comments
-
Hey @Jackson200, thanks for this. I have to say that I thought (assumed) that Rails engine configuration was still available regardless of whether the engine itself was mounted or not. Is the Lookbook gem included only in your I'll look into this and update the docs regardless as it definitely should be clearer on this topic to prevent people from running into issues when deploying to production. |
Beta Was this translation helpful? Give feedback.
-
Hi @allmarkedup Yes you are right, it's the gem which is only in Maybe I went back and changed it because of the https://lookbook.build/guide/deployment/ Thanks for all your work and help! |
Beta Was this translation helpful? Give feedback.
-
@Jackson200 Ok great, thanks for updating me - I will try to add a note clarifying that people need to make sure that the gem is available in production onto the deployment page so others don't get caught out by the same thing 👍 |
Beta Was this translation helpful? Give feedback.
-
Hi there @allmarkedup!
I came across a small gotcha when deploying Lookbook to production.
Following the Quick Start I limited the engine to dev env.
Then I set some config in my application.rb
Everything worked super in development, but the missing Lookbook::Engine in production, gave me a
lookbook not defined
error from my config/application.rb file. I easily moved theconfig.lookbook
over to config/development.rb, and it is really obvious.Still, wondering if it would be better to specify this in the docs. I know there is another section for running in production.
Thanks again for all your work!
Beta Was this translation helpful? Give feedback.
All reactions