Skip to content
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

✨ Add RTV serve_mode #23611

Merged
merged 7 commits into from
Aug 6, 2019
Merged

Conversation

jonathantyng-amp
Copy link
Contributor

Add a serve_mode that uses a build from a specific RTV branch. Set the serve_mode with the RTV number you want (including the first 2 version digits).

E.g.
http://localhost:8000/serve_mode=001907231757120 will set the serve mode to use the 001907231757120 RTV branch and requests will go to https://cdn.ampproject.org/rtv/001907231757120/*

@jonathantyng-amp
Copy link
Contributor Author

cc @zhouyx for review :)

@zhouyx
Copy link
Contributor

zhouyx commented Aug 6, 2019

LGTM! Any idea on if the rtv doesn't exist, should we just let it timeout?

@jonathantyng-amp
Copy link
Contributor Author

LGTM! Any idea on if the rtv doesn't exist, should we just let it timeout?

Yeah I think thats the best option

@zhouyx zhouyx merged commit 3830b3a into ampproject:master Aug 6, 2019
@zhouyx
Copy link
Contributor

zhouyx commented Aug 7, 2019

Just used this feature and it's extremely useful!! THANK YOU 🎉

thekorn pushed a commit to edelight/amphtml that referenced this pull request Sep 11, 2019
* allow rtv serve mode

* temp

* replace urls to rtv url

* docs and replace URL

* cleanup

* whitelist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants