Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mjarkk/gorun
Run all your micro services at once
https://github.com/mjarkk/gorun
Last synced: about 1 month ago
JSON representation
Run all your micro services at once
- Host: GitHub
- URL: https://github.com/mjarkk/gorun
- Owner: mjarkk
- License: mit
- Created: 2020-02-13T15:57:23.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-02-20T17:23:07.000Z (over 4 years ago)
- Last Synced: 2024-04-15T10:06:38.577Z (7 months ago)
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `gorun` - run all the GO things at once
Do you have a shitload of **GO** microservices all part of 1 project?
Well in that case this program can solve the problem of 20 open terminal tabs.### Install
```sh
go install github.com/mjarkk/gorun@master
```### Create a config
Create a file named `.gorun` or in the parrent dir create a file with the name of the folder with a `.` before it,
Add a config like this:
```json
{
"": {
"server": ".",
"email": "workers/email/Email.go",
"notifi": "workers/notifications/Notifications.go",
"paymnt": "workers/payments/Payments.go --mock",
"export": "ALLOW_EXPERIMENTAL=true workers/exports/Exports.go",
"images": "$ some_non_go_program",
}
}
```
Now when you execute `gorun`, it will run the programs spesified above in paralel and add a prefix to the console output of every program.### Custom config
You can also add custom configs like this:
```json
{
"minimal": {
"server": ".",
"notifi": "workers/notifications/Notifications.go",
}
}
```
And use the config via `gorun minimal`### Program `program_name_here` it's output is now broken, will you fix it?
TL;DR: No,
Buttt, if it fixes the output for a lot of things maybe.
The main purpose of this program is to run a lot of little microservices that just log garbage and to know from which micro service came the log.
This is not made for programs that use special printing tricks