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

Accept CORS requests from dlang.org #501

Closed
wilzbach opened this issue Feb 21, 2017 · 0 comments
Closed

Accept CORS requests from dlang.org #501

wilzbach opened this issue Feb 21, 2017 · 0 comments
Labels

Comments

@wilzbach
Copy link
Member

Since a couple of days, examples can be run directly on dlang.org.
This uses Dpaste as a backend. However, it seems to me that

  1. Dpaste doesn't use any caching
  2. Any request to Dpaste takes at least two seconds

I am not sure how long it takes to start a Docker instance, but it might be worth checking whether the DTour is faster than DPaste

Also Dpaste has no way to open a snippet which is an often requested feature for the examples in dlang.org. So while I am not sure whether it's a good idea, but we we could have a /editor route that just loads the CodeMirror editor as we already have the backend ready to handle requests. Note that of course this js code could also be deployed under run.dlang.io`, so that for a normal user it won't even be detectable that it's powered by the backend of the Tour.

wilzbach added a commit to wilzbach/dlang-tour that referenced this issue May 7, 2017
wilzbach added a commit to wilzbach/dlang-tour that referenced this issue Jun 28, 2017
wilzbach added a commit to wilzbach/dlang-tour that referenced this issue Jun 28, 2017
wilzbach added a commit to wilzbach/dlang-tour that referenced this issue Jun 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant