Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cd384e0d59 | ||
|
|
8921cac35b | ||
|
|
6042783e82 | ||
|
|
b7b3a9f898 | ||
|
|
15643dcb3f | ||
|
|
5f0f2f5378 | ||
|
|
c1b57b59cf | ||
|
|
21d53818f2 |
10
Changelog.md
10
Changelog.md
@@ -1,3 +1,13 @@
|
||||
## 0.53.0 (2012-07-24)
|
||||
|
||||
* put app root in $HOME [David Dollar]
|
||||
|
||||
## 0.52.0 (2012-07-24)
|
||||
|
||||
* wrap command in a runner that sources .profile.d scripts [David Dollar]
|
||||
* fix upstart export specs [David Dollar]
|
||||
* Make upstart export start/stop with network [Daniel Farrell]
|
||||
|
||||
## 0.51.0 (2012-07-11)
|
||||
|
||||
* dont try to colorize windows [David Dollar]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
PATH
|
||||
remote: .
|
||||
specs:
|
||||
foreman (0.52.0)
|
||||
foreman (0.54.0)
|
||||
thor (>= 0.13.6)
|
||||
|
||||
GEM
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
#/ Usage: foreman-runner [-d <dir>] [-p] <command> [<args>...]
|
||||
#/
|
||||
|
||||
@@ -76,7 +76,8 @@ class Foreman::CLI < Thor
|
||||
def run(*args)
|
||||
load_environment!
|
||||
begin
|
||||
exec engine.env, args.shelljoin
|
||||
process = Foreman::Process.new(args.shelljoin, :env => engine.env)
|
||||
process.run
|
||||
rescue Errno::EACCES
|
||||
error "not executable: #{args.first}"
|
||||
rescue Errno::ENOENT
|
||||
|
||||
@@ -256,7 +256,10 @@ private
|
||||
1.upto(formation[@names[process]]) do |n|
|
||||
reader, writer = create_pipe
|
||||
begin
|
||||
pid = process.run(:output => writer, :env => { "PORT" => port_for(process, n).to_s })
|
||||
pid = process.run(:output => writer, :env => {
|
||||
"HOME" => process.cwd,
|
||||
"PORT" => port_for(process, n).to_s
|
||||
})
|
||||
writer.puts "started with pid #{pid}"
|
||||
rescue Errno::ENOENT
|
||||
writer.puts "unknown command: #{process.command}"
|
||||
|
||||
@@ -90,8 +90,10 @@ class Foreman::Process
|
||||
!alive?
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
# Returns the working directory for this +Process+
|
||||
#
|
||||
# @returns [String]
|
||||
#
|
||||
def cwd
|
||||
File.expand_path(@options[:cwd] || ".")
|
||||
end
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
module Foreman
|
||||
|
||||
VERSION = "0.52.0"
|
||||
VERSION = "0.54.0"
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user