我正在尝试使用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
难道这是由于错误的路径设置?什么阻止工头开始?
- 拉梅什