LoginSignup
0
0

More than 3 years have passed since last update.

Capistrano3 で pg インストールがエラーになる(.bash_profile の PATH が読み込まれていない)

Last updated at Posted at 2020-06-11

結論

  1. Capistrano は .bashrc しか読み込まない
  2. .bashrcPATH を書いても エラーになる場合は、[ -z "$PS1" ] && return のような記述の上に書かないと読み込まれない
.bashrc
# PostgreSQL12
export PATH=/usr/pgsql-12/bin:$PATH

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0