db:migrate fails in Emacs shell
When I rake my db in emacs, it fails– although it works fine in terminal. The 开发者_Go百科error is related specifically to an environment variable that emacs doesn't seem to be picking up on. What is the best way to resolve this in .emacs? Do I need to source my profile every time I start emacs?
Which emacs shell are you using? There are a few different types which are good for different cases. I recently read this article which you may find informative: http://www.masteringemacs.org/articles/2010/11/01/running-shells-in-emacs-overview/
I suggest trying simply M-x shell
which will simply run your default shell in emacs (usually bash).
精彩评论