-
Notifications
You must be signed in to change notification settings - Fork 5
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
Use http.createServer instead of localTestingURL #175
Comments
I agree we should let node serve files and get away from localTestingURL as much as possible. I opened phetsims/aqua#97 for the qunit part. |
def get_local_testing_url():
return get_build_local()[ 'localTestingURL' ]
// ...
class PhetOpenPhetmarksCommand(sublime_plugin.TextCommand):
def run(self, edit):
view = self.view
open_link(get_local_testing_url() + 'phetmarks') Hence we may not be able to delete it. But we should still get rid of as many usages as possible. |
I'm not planning to work on this in the near future, unassigning. |
@jonathanolson created The vanilla server used by PhET-iO API generation seems a bit more straight forward. I would like to try to use that instead. Tagging @jonathanolson about the work (in my working copy to be committed soon). |
I could not figure out an easy way to test ReleaseBranch, so I converted the usage in Binder to confirm that the conversion works. I found that the mime types in the PhET-iO api generation are not complete for phet sims, and I had to add svg and json in order for the sim to fully load in puppeteer. I didn't rerun generation though to make sure that new commits in #229 are working as expected. |
I was able to use PERENNIAL/withServer for binder's usage above. That works really well, but we won't be able to use perennial in Chipper for |
PDOM Comparison went smoothly as well. |
Alright, all usages of localTestingURL have been removed expect that used by the phet-sublime-plugin. @jonathanolson over to you to review the above commits, and to update the python code for the plugin. My goal is to tell people that they can remove that key from their build-local, so let me know when you think it is safe for me to do that. |
Looks good to me! I'll change the plugin at my own convenience. Looks safe to tell people that! |
Posted, closing
|
After seeing some great work done over in https://github.com/phetsims/phet-io/issues/1664 by @samreid, it is clear and simple to create a server instead of relying on
localTestingURL
. For example see this commit here: phetsims/chipper@9d74fe9.I think we should try to get rid of this everywhere. Here is where I see usages currently:
Assigning to @samreid also in case he has opinions.
The text was updated successfully, but these errors were encountered: