Railsコマンドが使えない
.bash_profileに書き込んでパスを通す
隠しファイルなので、lsだと表示されないのでls -allで確認
# ls -all
.bash_profile
# vi .bash_profile
-------------------------------------------------------------------------------------
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
#どこの場所からでもrailsコマンドを実行できるようにする
PATH=$PATH:$HOME/bin:/var/lib/redmine/bin
export PATH
export RAILS_ENV="production"
-------------------------------------------------------------------------------------