Answer the question
In order to leave comments, you need to log in
How do you keep your rails engine version up to date for your application?
Hello!
There is a rails engine, which describes the model, some common scripts and styles.
There are three rails applications that use this engine.
The inconvenience lies in the fact that when I corrected something in the engine and committed these changes, I have to do bundle update <geme name> in applications so that the used commit changes in Gemfile.lock.
I understand that you still need to do this, otherwise there is no way, but I want to somehow automate this process, since it happens that I forget to do this, I deploy all applications, they use the old commit in production and fall, as in the old commit there is no new functionality.
Is it possible (and okay) to do this in a pre-push git hook? Check if it is necessary to update the commit version, if necessary, then call bundle update <geme name>, commit with auto-note and push.
There will never be a situation that it will be necessary to download a new version of the application so that it uses the old version of engine.
Are there other solutions besides git hooks? Deploy with the help of capistrano
Thank you.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question