我正在嘗試使用heroku的工頭。這就是在我的設置存在:工頭開始拋出.profile在Ubuntu 10.04中找不到錯誤
- 使用的Ubuntu 10.04機器安裝工長 安裝
- 紅寶石版本:1.9.3-P362 安裝
- RubyGems的版本是:1.8.24
我可以觸發一個正常工作的示例test.rb文件。下面的代碼:
[email protected]:~# cat test.rb #/usr/local/rvm/rubies/ruby-1.9.3-p362/bin/ruby require 'rubygems' puts "Hello world!"
創建一個Gemfile中使用代碼:
source :rubygems gem 'sinatra', '1.1.0' gem 'thin'
創建一個Procfile與代碼: 網站:捆綁EXEC紅寶石test.rb -p $ PORT
發行工頭開始 - 失敗如下:
06:37:09 web.1 | started with pid 3638 06:37:09 web.1 | .: 39: .profile: not found 06:37:09 web.1 | exited with code 2 06:37:09 system | sending SIGTERM to all processes SIGTERM received
另外我還安裝了特殊版本的工頭(0.60.2),它在啓動時顯示與上面相同的錯誤。
.profile文件是在我的機器以下位置:
/home/user/.profile
/etc/skel/.profile
/root/.profile
其中包含: #〜/ .profile文件:由Bourne兼容登錄shell執行。
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
mesg n
難道這是由於錯誤的路徑設置?什麼阻止工頭開始?
- 拉梅什