mirror of
https://github.com/wahyd4/forego.git
synced 2026-08-08 21:01:01 +10:00
c6e54eeee78456219f9aa6dcf9d5ed65d671b37e
Not all Unix platforms put their `bash` executable at `/bin/bash`, for example on NixOS it may exist at `/run/current-system/sw/bin/bash`. Instead of using `/bin/bash`, then, use `bash` alone, and allow the [cmd package to resolve the correct path][cmd] bashed on the user's current environment. [cmd]: https://golang.org/pkg/os/exec/#Command Before: ``` $ forego start forego | starting web.1 on port 3000 forego | Failed to start web.1: fork/exec /bin/bash: no such file or directory forego | starting worker.1 on port 3100 forego | Failed to start worker.1: fork/exec /bin/bash: no such file or directory ``` After: ``` $ forego start forego | starting web.1 on port 3000 forego | starting worker.1 on port 3100 web.1 | [26076] Started ```
forego
Foreman in Go.
Installation
OS X (Homebrew)
brew install forego
Precompiled Binaries
Compile from Source
$ go get -u github.com/ddollar/forego
Usage
$ cat Procfile
web: bin/web start -p $PORT
worker: bin/worker queue=FOO
$ forego start
web | listening on port 5000
worker | listening to queue FOO
License
Apache 2.0 © 2015 David Dollar
Languages
Go
91.9%
Ruby
3.3%
Shell
3%
Makefile
1.1%
Procfile
0.7%