javascript_i18n
javascript_i18n copied to clipboard
How Can I use .gitignore with generated files
Yesterday we've added that gem to project. It works great, and does exactly what we wanted. :)
We generate files at every request at development mode, and javascript translation files change often (even if we don't change files in config/locales). We can add these files to gitignore, but then, we won't have them in production. How you deal with this? Mayby you use some capistrano task, to fenerate these files after deploy?
Yeah, in our previous project these generated files were added to .gitignore. Simple capistrano hook generated JS files after deploy. It'd be nice to provide some kind of middleware that serves JS i18n files.
So we same we did, and works fine. How would you like to these middleware works?