I am trying to use foreman for heroku. This is what is existing in my setup:
- Using a Ubuntu 10.04 machine for installing foreman
- Ruby version installed is: 1.9.3-p362
- Rubygems version installed is: 1.8.24
I can trigger a sample test.rb file which works fine. Code below:
root@ubuntu-test:~# cat test.rb #/usr/local/rvm/rubies/ruby-1.9.3-p362/bin/ruby require 'rubygems' puts "Hello world!"
Created a Gemfile with code:
source :rubygems gem 'sinatra', '1.1.0' gem 'thin'
Created a Procfile with code: web: bundle exec ruby test.rb -p $PORT
Issued foreman start - which fails as below:
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
Also I have installed specific version of foreman (0.60.2) which shows the same error as above when started.
The .profile file is found in the following locations in my machine:
/home/user/.profile
/etc/skel/.profile
/root/.profile
which contains: # ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
mesg n
Could this be because of wrong path settings? What is preventing foreman from starting?
- Ramesh