方便本地开发调试可以试试 direnv https://github.com/direnv/direnv ``` direnv is an environment switcher for the shell. It knows how to hook into bash, zsh, tcsh, fish shell and elvish to load or unload environment variables depending on the current directory. This allows project-specific environment variables without cluttering the ~/.profile file. ```
server 部署的话在我一般用 supervisor 惯了,在 conf 里可以设 env path