apex / apex/up

up start improvements

Đang mở
#307 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Feature Request Feedback Wanted UX
Ngôn ngữ chính
Go
Star
8.8k
Fork
383
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Just an issue for #239, the gist of it is to provide local build/clean hooks so that `up start` starts the proxy and runs `node app.js`, or `go run main.go` etc for you.

The alternative is to replace `up start` with a less magical `up proxy PORT`, so instead of running:

```
$ up start
```

You'd run something like the following, where `5000` is the port `app.js` is listening on.

```
$ node app.js
$ up proxy 5000
```

and visit the proxy's port instead of your app's. This might be a bit more confusing, but you also need to be aware of less magic which could be potentially confusing as well if you start deviating from the conventions (of `./app.js`, and `./main.go` etc), because then you'd need something like:

```json
{
"proxy": {
"local_command": "go run cmd/api/main.go"
}
}
```

Opinions?

[![](https://m131jyck4m.execute-api.us-west-2.amazonaws.com/prod/poll/01BSA6HHNAP6SVQ3QNA5H4YM6Y/up%20proxy)](https://m131jyck4m.execute-api.us-west-2.amazonaws.com/prod/poll/01BSA6HHNAP6SVQ3QNA5H4YM6Y/up%20proxy/vote)
[![](https://m131jyck4m.execute-api.us-west-2.amazonaws.com/prod/poll/01BSA6HHNAP6SVQ3QNA5H4YM6Y/up%20start)](https://m131jyck4m.execute-api.us-west-2.amazonaws.com/prod/poll/01BSA6HHNAP6SVQ3QNA5H4YM6Y/up%20start/vote)

---

- [ ] allow local overrides of hooks etc
- [ ] add inferred hooks for Go et al
- [ ] document

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.