Skip to content

Add backend proxy to aid local fastboot testing #2215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 12, 2020

Conversation

jtgeibel
Copy link
Member

To avoid the need to set up a local nginx configuration during
development, this commit adds a simple proxy for frontend requests when
USE_FASTBOOT=staging-experimental is set.

When enabled, developers should browse to http://localhost:8888/
(instead of port 4200 when using npm run start:local).

@rust-highfive
Copy link

r? @smarnach

(rust_highfive has picked a reviewer for you, use r? to override)

@bors
Copy link
Contributor

bors commented Apr 12, 2020

☔ The latest upstream changes (presumably #2389) made this pull request unmergeable. Please resolve the merge conflicts.

To avoid the need to set up a local nginx configuration during
development, this commit adds a simple proxy for frontend requests when
`USE_FASTBOOT=staging-experimental` is set.

When enabled, developers should browse to http://localhost:8888/
(instead of port 4200 when using `npm run start:local`).
@jtgeibel jtgeibel force-pushed the backend-fastboot-proxy branch from 268b2c6 to c9b9ef0 Compare April 12, 2020 15:08
@jtgeibel
Copy link
Member Author

I've rebased onto the new http types, which simplified this logic a lot. This is still intended for local development only.

r? @JohnTitor

@rust-highfive rust-highfive assigned JohnTitor and unassigned smarnach Apr 12, 2020
Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I think it'd be nice that the docs had a note for that but we could follow-up later.

@JohnTitor
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Apr 12, 2020

📌 Commit c9b9ef0 has been approved by JohnTitor

@bors
Copy link
Contributor

bors commented Apr 12, 2020

⌛ Testing commit c9b9ef0 with merge 2ba19be...

@bors
Copy link
Contributor

bors commented Apr 12, 2020

☀️ Test successful - checks-travis
Approved by: JohnTitor
Pushing 2ba19be to master...

@bors bors merged commit 2ba19be into rust-lang:master Apr 12, 2020
@jtgeibel jtgeibel deleted the backend-fastboot-proxy branch May 11, 2020 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants