ddollar/foreman — Issue #145: Won't `cd` to working directory with space in the path
Author: mcoms
Created: 2012-01-30 02:26:05+00:00
State: open

With the following Procfile:

mongo: mongod run --config /usr/local/Cellar/mongodb/2.0.2-x86_64/mongod.conf
elasticsearch: elasticsearch -f -D es.config=/usr/local/Cellar/elasticsearch/0.18.7/config/elasticsearch.yml
rails: bundle exec rails server -p $PORT

Ruby 1.9.3-p0 and foreman 0.37.1 I get the following error:

air:app nick$ foreman start
02:22:27 rails.1 | process terminated
02:22:27 mongo.1 | started with pid 43700
02:22:27 system | sending SIGTERM to all processes
02:22:27 system | sending SIGTERM to pid 43700
02:22:27 elasticsearch.1 | started with pid 43701
02:22:27 rails.1 | started with pid 43702
02:22:27 mongo.1 | /Users/nick/.rvm/gems/ruby-1.9.3-p0/gems/foreman-0.37.1/bin/runner: line 21: cd: /Users/nick/Documents/Elastic: No such file or directory
02:22:27 elasticsearch.1 | /Users/nick/.rvm/gems/ruby-1.9.3-p0/gems/foreman-0.37.1/bin/runner: line 21: cd: /Users/nick/Documents/Elastic: No such file or directory
02:22:27 rails.1 | /Users/nick/.rvm/gems/ruby-1.9.3-p0/gems/foreman-0.37.1/bin/runner: line 21: cd: /Users/nick/Documents/Elastic: No such file or directory
02:22:27 system | sending SIGTERM to pid 43701
02:22:27 elasticsearch.1 | process terminated
02:22:27 mongo.1 | process terminated

air:app nick$ pwd
/Users/nick/Documents/Elastic Systems/testapp/app

Perviously working with ruby 1.9.2-p290.