Commit Graph
202 Commits
Author SHA1 Message Date
Roman VaughanandDavid Dollar 4bb213294f Correct github repo URL (#110) 2018-02-16 20:16:57 -08:00
Roman VaughanandDavid Dollar 04887c4f17 Test build with CircleCI v2.0 (#109) 2018-02-16 19:49:09 -08:00
Roman VaughanandDavid Dollar b41805148d Add release builds for arm and arm64 (where applicable) (#108) 20180216151118 2018-02-16 07:10:34 -08:00
Tom AndersonandDavid Dollar 9cd7400514 Expand the help text for the start command, and give a hint on where to find it (#98) (#99) 20170327195458 2017-03-27 15:54:21 -04:00
Jonathan ChenandDavid Dollar de6c5f3bd8 Add original Foreman link (#100)
Since not everyone knows what Foreman is... yet!
20170327195445
2017-03-27 15:54:06 -04:00
BerndandDavid Dollar 557b5e1dfa eg/error: minor adjustmen printout with actual sleep time (#102) 20170327195024 2017-03-27 15:49:46 -04:00
David Dollar ac8303a14e allow git tagging 20170111202937 2017-01-11 15:28:56 -05:00
David Dollar 80b6965f88 fix env vars 20170111202617 2017-01-11 15:18:03 -05:00
David Dollar 5c11b9371d tag releases 2017-01-11 15:15:55 -05:00
Joao FernandesandDavid Dollar 7b90020232 Change the application root to the directory containing the Procfile (#95) 2016-11-25 20:24:12 -05:00
Enrico ComitiandDavid Dollar d42165a186 Fix longest name length (#90)
Hi @ddollar,
thanks for your work on Forego.

Just an aesthetical issue: there is a wrong alignement when the longest name of processes has length 6.

A Procfile:

```
qwerty: echo 'hi'
```

Output with current version:

```
forego  | starting qwerty.1 on port 5000
qwerty.1 | hi
```

Output applying this commit:

```
forego   | starting qwerty.1 on port 5000
qwerty.1 | hi
```
2016-10-09 10:36:27 -04:00
David Dollar 7a6954ecc4 ignore 2016-08-28 14:38:40 -04:00
Daniel PerezandDavid Dollar 9bebfece50 Add flag to customize shutdown gracetime (#84) 2016-06-05 20:22:49 -04:00
David Dollar 733e197575 hide more cmd line 2016-05-30 19:08:00 -04:00
David Dollar 284f7fcf8a suppress output of downloads 2016-05-30 18:10:50 -04:00
Alan ShreveandDavid Dollar dbfa1aab09 Update downloads link to new destination (#83) 2016-05-30 18:01:44 -04:00
Chenyang LiuandDavid Dollar 5d3c4e433e use exec to prevent spawn unneeded subprocess 2016-04-23 18:14:09 -04:00
David Dollar d7a88f3b3a fix downloads link 2016-04-13 14:31:49 -07:00
David Dollar c19b25f6e5 Fix up release process (#82)
* 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
2016-04-13 14:29:46 -07:00
codeskyblueandDavid Dollar 7d31007cd6 catch more signals instead of just sigint 2016-04-13 13:13:10 -07:00
Võ Anh DuyandDavid Dollar dd6e9899ca Allow local config with .forego (#56)
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
2016-04-13 13:11:00 -07:00
Satoshi EbisawaandDavid Dollar 62551d4c2e Allow hyphen for proc name (#60) 2016-04-13 13:07:35 -07:00
Joshua MervineandDavid Dollar ea0c5b42d0 start concurrency only runs listed processes (#64)
* start concurrency only runs listed processes

* fixing all condition in a hacky way
2016-04-13 13:07:12 -07:00
Nicolas GrillyandDavid Dollar 9c1bbd7d26 Simplify Forego.startProcess (#79)
* 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
2016-04-13 13:05:13 -07:00
Nicolas GrillyandDavid Dollar 9bc72ddb1f Use Go 1.6 vendoring (#80) 2016-04-13 13:04:45 -07:00
David Dollar c69a0e4a4a Merge pull request #78 from gardentechno/master
Fix restart
2016-03-21 09:35:25 -04:00
Nicolas Grilly 9372bb8def Fix restart 2016-03-21 13:09:44 +01:00
Nicolas Grilly 2d077d99e7 Fix Travis by upgrading to Go 1.6 (which includes cover) 2016-03-21 13:09:43 +01:00
David Dollar 5d88fd7d11 Merge pull request #76 from bernerdschaefer/bs-use-bash-from-environment
Use bash from current environment
2016-02-23 18:40:25 -05:00
Bernerd Schaefer c6e54eeee7 Use bash from current environment
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
```
2016-02-23 15:32:55 -08:00
David Dollar 4eaf54121e fix env handling 2015-02-19 09:28:19 -05:00
David Dollar f0fe9777cd Merge pull request #52 from subicura/master
fix #51
2015-02-16 22:16:24 -05:00
Chungsub Kim abbc8f80c4 fix #51 2015-02-17 12:02:51 +09:00
David Dollar 1c127e8353 apache 2.0 2015-01-30 17:21:45 -05:00
David Dollar 11c47bcbdd tweak readme 2015-01-30 17:21:15 -05:00
David Dollar bea6920fdb fix readme 2015-01-30 17:20:30 -05:00
David Dollar 9567418cc5 fix links 2015-01-30 17:16:35 -05:00
David Dollar 98ee8626b3 fix readme links 2015-01-30 17:16:11 -05:00
David Dollar db3ef40c25 vendor deps v0.16.1 2015-01-30 16:59:49 -05:00
David Dollar 146983ac8f vendor deps v0.16.0 2015-01-30 16:55:57 -05:00
David Dollar 0114039026 Merge pull request #48 from nhocki/port_env
Read PORT from the environment
v0.15.0
2015-01-02 17:01:36 -05:00
Nicolás Hock Isaza 76b295e7f5 Read PORT from the environment
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
2015-01-02 16:53:13 -05:00
David Dollar 23c8b0413e fix urls 2015-01-01 21:45:48 -05:00
David Dollar 06e82bf66a try new travis v0.14.4 2015-01-01 21:39:31 -05:00
David Dollar 28ea52c798 vendor deps v0.14.3 2015-01-01 21:38:28 -05:00
David Dollar 0746ea7f70 update dist v0.14.2 2015-01-01 21:37:06 -05:00
David Dollar a57f863d8d vendor deps v0.14.1 2015-01-01 21:30:55 -05:00
David Dollar 348bae0904 Merge branch 'sergiobuj-port_from_env' v0.14.0 2015-01-01 21:20:34 -05:00
Sergio BoteroandDavid Dollar bff4e8f8cf Read port from env
Allow the port to be set on the .env file to avoid using the port flag
every time.
2015-01-01 21:20:18 -05:00
David Dollar 60ea19d34b Merge pull request #46 from nhocki/dotforego_support
Support multiple environment flags
2015-01-01 21:15:56 -05:00