Skip to content

Capistrano: fix up installed gem permissions after deployment.#134

Merged
bshand merged 1 commit intomainfrom
feature/fixup_gem_permissions
Aug 27, 2024
Merged

Capistrano: fix up installed gem permissions after deployment.#134
bshand merged 1 commit intomainfrom
feature/fixup_gem_permissions

Conversation

@bshand
Copy link
Contributor

@bshand bshand commented Aug 19, 2024

Capistrano: fix up installed gem permissions after deployment.

This fixes permissions in the shared/bundle/ directory after deployment, to make it writeable by all deployers. We already set group permissions correctly in the bundle directory, but some gem installs ignore these permissions, so we need to fix them up. (I think they build files in $TMPDIR, and then move them across with the wrong group / user.) This is not immediately obvious as a problem, but sometimes makes it impossible for a single deployer to remove the installed gems for old ruby versions.

Capistrano: identify errors when installing out-of-bundle gems.

@bshand bshand force-pushed the feature/fixup_gem_permissions branch from 4374d11 to 0273e97 Compare August 19, 2024 11:39
@bshand bshand marked this pull request as draft August 19, 2024 12:14
Capistrano: identify errors when installing out-of-bundle gems.
@bshand bshand force-pushed the feature/fixup_gem_permissions branch from 0273e97 to 63d5620 Compare August 19, 2024 12:20
@bshand bshand marked this pull request as ready for review August 19, 2024 12:20
Copy link
Contributor

@kenny-lee-1 kenny-lee-1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok to me

@bshand bshand merged commit 8dab4aa into main Aug 27, 2024
@bshand bshand deleted the feature/fixup_gem_permissions branch August 27, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants