Skip to content

Instantly share code, notes, and snippets.

@marocchino
Created March 2, 2015 13:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marocchino/6aba044f7c8a987e10bf to your computer and use it in GitHub Desktop.
Save marocchino/6aba044f7c8a987e10bf to your computer and use it in GitHub Desktop.
fish 에서 RAILS_ENV 사용하기

fish에서 RAILS_ENV하기

이 명령은 fish에서 쓸 수 없다.

$ RAILS_ENV=test rake db:migrate

는 건 알고 있었는데.. 오늘 마침 저걸 할일이 있어서 찾아보았다.

이렇게 하면된다.

$ env RAILS_ENV test rake db:migrate

그런데 위의 명령을 fish에서 날려보니 예전엔 안나오던 에러메세지가 나온다.

$ RAILS_ENV=test rake db:migrate
fish: Unknown command 'RAILS_ENV=test'. Did you mean to run rake with a modified environment? Try 'env RAILS_ENV=test rake...'. See the help section on the set command by typing
'help set'.

..다음부터는 안되는거 알더래도 일단 해보고 에러메세지로 검색하는것도 괜찬을 것 같다는 생각을 했다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment