You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With a personal app, I just had problems with divergent gem versions production/development. Of course, I can manually add the file to the custom list.
But I think, for most apps it is desired to keep the Gemfile.lock and do not upgrade automatically (AFAIK most apps versions are more relaxed).
I know, with Redmine/ multiplatform deployment, you overwrite Gemfile.lock, but I sense, Gemfile.lock would be a good default.
That, or choosing a different strategy than git archiving (like just copying over the archive).
I know it's hot discussion.
For me Gemfile.lock never worked as intended. Windows will always require different gems.
It would be best to use a Heroku like approach:
If the Gemfile.lock is present in the sources it should be used.
If no Gemfile.lock is present, it should be generated for each deployment.
Bonus would be to scan for mingw/windows platforms and ignore the Gemfile.lock in these cases.
Yes, that approach sounds perfect.
I guess, people who develop & deploy on different platforms would'nt check in the Gemfile.lock, anyway.
But I think, the majority of developers would (or better: should) develop & deploy on similiar platforms.
I've noticed that
Gemfile.lock
is missing from default git archive command https://github.com/dresden-weekly/ansible-rails/blob/develop/rails/create-release/defaults/main.yml#L19With a personal app, I just had problems with divergent gem versions production/development. Of course, I can manually add the file to the custom list.
But I think, for most apps it is desired to keep the Gemfile.lock and do not upgrade automatically (AFAIK most apps versions are more relaxed).
I know, with Redmine/ multiplatform deployment, you overwrite Gemfile.lock, but I sense, Gemfile.lock would be a good default.
That, or choosing a different strategy than git archiving (like just copying over the archive).
What do you think @arBmind @tnt ?
The text was updated successfully, but these errors were encountered: