Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

環境変数追加(NFS用): chokidarのusePolling #657

Merged
merged 1 commit into from May 24, 2021

Conversation

big-stream
Copy link
Contributor

docker-compose.ymlに環境変数追加

  • 変更内容はCONTRIBUTING.md に記載されたワークフローに従っています

docker-compose環境への変更、お疲れ様でした。

NFSでマウントしている等の環境では、自動の再ビルドが行われないようです。(NFSか否かの違いだけで確認しています)

chokidarのusePollingオプションに対応する環境変数CHOKIDAR_USEPOLLINGtrueに変更すると、自動の再ビルドが機能しました。

https://github.com/paulmillr/chokidar#performance
https://nodejs.org/dist/latest-v14.x/docs/api/fs.html#fs_availability

  • 無関係の環境では、パフォーマンス的にデフォルトfalseのままが良いようです

差し支えなければ、dockerに環境変数を渡せるようにYAML変更すると、下記のように実行できて便利です。

export CHOKIDAR_USEPOLLING=true
yarn start

ご検討よろしくお願いいたします。

@google-cla google-cla bot added the cla: yes label May 24, 2021
Copy link
Collaborator

@lacolaco lacolaco left a comment

Choose a reason for hiding this comment

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

ありがとうございます!

@lacolaco lacolaco merged commit 7fa53c1 into angular:master May 24, 2021
@big-stream big-stream deleted the chokidar branch May 25, 2021 11:50
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.

None yet

2 participants