railsで環境変数を扱うことはしばしばあるが、
exportコマンドで環境変数を設定してもサーバーからログアウトした時点で消えてしまう。
bash_profileやbashrcにexportコマンドを記述しておくことで、起動する度にexportが実行されるので、環境変数が無くなる心配がない。
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
127