* remove godeps
* remove dist for now
* add colortext
* godeps
* vendor
* remove unneeded fixture
* fix vendor
* switch to circle
* dont run example during tests
* no circle.yml
* circle release
* fix equinox download
* equinox release
* fix shell
* fix shell
* fix shell
* fix shell
* release from circle-release to test
* release from circle-release
* release from circle-release
* download key
* remove update for now
* back to var for key
* and back to url
* clean up makefile
* date versions
* badge
* only master branch releases
See #32
gotenv can read simple yaml file so we don't need to use a read yaml
parse.
The value in forego file will be set as default value, if we set flag
or env value, it will override the value in forego file
* Remove unnecessary return
* Simplify method Forego.startProcess
We need to call f.teardown.Fall() only when a process has finished
and restart is disabled.
When f.teardown.Barrier() is closed, it’s unnecessary to call
f.teardown.Fall() because we know the barrier is already closed.
* Don’t wait twice on finished
The select has two cases. In the first case, we wait on finished.
We don’t need to wait on finished a second time since we already know
that finished is closed. This is the reason why we moved the defer statement
at the beginning of the second case.
* This goroutine doesn’t need to block until the process has finished
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
```
Read the `PORT` from the system environment if it's present. This is
related to #44 and will make the port read order this:
1. `-p` flag.
2. `PORT` in the `.env` file
3. `PORT` environment variable
4. 5000 as default port