I have written a hand full of Rails applications and typically I use the asset pipeline and coffeescript with bootstrap and the likes when deploying. Most of the projects are somewhat barebones from a front end perspective, but that's not to say they aren't functional from the server side. I don't usually have a hard time moving projects from development to production, most of the work ends up being trivial configuration details.
For my most recent rails project, I was looking to add a react form walk-through on sign up. I found a few ruby gems that worked with react and I decided to pick out reactjs/react-rails. I had no problem getting the development environment up and running, but when I tried to move the project into a test environment and then production, webpacker was giving me a time and a half. I ended up scrapping the project and moving forward to something new.
Anyone have similar experiences with dumping side projects? How much work do you usually put into a problem before cutting the cord and moving forward?
Top comments (4)
Consider looking at the dev.to repository. It's rails and uses webpacker. It uses Preact instead of React but the bundling story should be the same.
thepracticaldev / dev.to
Where programmers share ideas and help each other grow
DEV Community👩💻 👨💻
The Human Layer of the StackWelcome to the dev.to codebase. We are so excited to have you. With your help, we can build out DEV to be more stable and better serve our community.
What is dev.to?
dev.to (or just DEV) is a platform where software developers write articles, take part in discussions, and build their professional profiles. We value supportive and constructive dialogue in the pursuit of great code and career growth for all members. The ecosystem spans from beginner to advanced developers, and all are welcome to find their place within our community.❤️
Table of Contents
Contributing
We encourage you to contribute to dev.to! Please check out the Contributing to dev.to guide for…
I'm not positive, but I believe @maestromac was the one who set it up initially.
Sweet. I'll check it out!
We got it working without react-rails gem. If you are using the newer version of rails you'll have webpacker installed. Follow their setup instruction and it should be enough to get you going.
Thanks for chiming in Mac!