Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#test
```sequence
Frontend->Backend:get or post
Backend->Redis:get
Redis->Redis:get model
Redis-->MySQL:get model (When data is not found on Redis)
Redis-->Backend:mohdel
Backend-->Frontend:json
Frontend->Frontend:build DOM
@takemi-ohama
takemi-ohama / shared.md
Last active July 5, 2022 23:08
[Linux]共有ディレクトリの実現方法

#TL;DR

  • 共有開発環境でgit cloneするディレクトリには、groupを設定してsetgid bitを付けるとよい。
  • 同時にumask を002にする。ちょっと怖い。
  • UPGに従えば怖くないらしい。

##課題

Webアプリ開発で、CIでdeployするほどでもない共有環境(客先やテスターに見せる画面とか)のdeployは直接git pullですませることが多い。 が、複数人で開発していると、そのままではgit pullする際にpermission deniedではじかれる。