Commit Graph
185 Commits
Author SHA1 Message Date
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
David Dollar d9f236f8ce tweaks 2015-01-01 21:15:04 -05:00
David Dollar 1564f99c74 less technical 2015-01-01 21:13:49 -05:00
David Dollar fa2e713509 typo 2015-01-01 21:13:12 -05:00
David Dollar 8bf57f3823 gobuild.io appears abandoned 2015-01-01 21:12:32 -05:00
David Dollar 1bc05da276 readme 2015-01-01 21:03:26 -05:00
David Dollar 41f53d6dac readme 2015-01-01 21:02:55 -05:00
David Dollar 6a76ea5a8c use gobuild.io 2015-01-01 21:02:16 -05:00
Nicolás Hock Isaza 294ed6c9ec Support multiple environment files on forego run 2014-12-22 19:41:47 -05:00
Nicolás Hock Isaza 656dbf434d Move loading multiple environments to env.go
This way all the env related code is in the same place.
2014-12-22 19:30:02 -05:00
Nicolás Hock Isaza e5004cd349 Support multiple environment flags
This adds support for multiple environment files via multiple `-e`
flags.

Closes #13
2014-12-21 11:28:18 -05:00
David Dollar f6f63c87c3 Merge pull request #33 from subicura/master
fix long stdout line read issue
2014-12-16 09:54:07 -05:00
David Dollar 48f73c202b Merge pull request #42 from sgmac/master
Show run help with no args
2014-11-05 07:12:42 -05:00
Sergio Galvan b49d884dfa Show run help with no args 2014-11-04 21:28:47 -08:00
David Dollar c4e9910997 tweak docs, closes #41 2014-10-14 15:12:32 -04:00
David Dollar de252449be Merge pull request #39 from dickeyxxx/testing
travis support and testing the version command
2014-09-18 19:24:01 +02:00
dickeyxxx fc066ab876 ddollar badge 2014-09-18 10:23:05 -07:00
dickeyxxx 712fe5e505 install cover tool 2014-09-18 10:20:57 -07:00