A
A
Anton Ivanov2016-08-20 05:03:13
git
Anton Ivanov, 2016-08-20 05:03:13

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

1 answer(s)
A
adisos, 2016-09-18
@adisos

I had 2 applications and 1 engine. Up to this day.
I got tired and uploaded everything into one repo - 2 applications and 1 engine. Now, as I adjust the capistrano, it will be easier IMHO.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question