-
Notifications
You must be signed in to change notification settings - Fork 7
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
Missing JS Build Step? #25
Comments
Hi-
e.g. in view-source:https://legumeinfo.org/chado_phylotree/phytozome_10_2.59235205 let me know if I misunderstood your issue; if I can't help sort it out, I can certainly find someone in our group more qualified to speak to js bundling issues than I am :) |
My goal is just to test the installation of tripal_phylotree on a fresh instance of tripal serving on http://localhost:3300/tripal/ (deployed with https://github.com/erasche/docker-tripal, but it shouldn't matter). My specific problem was that, just as on legumeinfo.org, I have this tag properly generated in <script src="/sites/all/modules/tripal/tripal_phylogeny/theme/js/aurelia/scripts/vendor-bundle.js" data-main="aurelia-bootstrapper"></script> However, this I've tried to play with the bundling config in aurelia, but couldn't find a way to replace
I feel like you're doing something similar for legumeinfo.org. I see 2 ways to close this issue:
I can make a PR for 1), but 2) looks too complicated for me :) |
OK, I think I understand better now; if you look at tripal_phylotree/tripal_phylotree.module Line 130 in 1ba51b0
you will see where a route is being defined for URL chado_phylotree/scripts/ -> phylotree_static_scripts which is described as: /**
Maybe there are better ways of doing this in drupal- I vaguely remember when suggested this slurp-the-file-and-spit-it-back-hack to the primary developer of this module (who has since left the group). In any case, I'm guessing the issue with your setup is that your URL structure is a bit different (looks like we are expecting chado_phylotree for most of our endpoints so you may run into other issues downstream too?- maybe there is a more flexible way we should be supporting how people choose to deploy this, let me know if you have thoughts). |
Ah ok, now I understand what's happening: I loaded my test tree using the tripal loader which defines this unexpected url for the loaded tree https://github.com/tripal/tripal/blob/7.x-2.x/tripal_phylogeny/includes/tripal_phylogeny.chado_node.inc#L499 I'll make more tests loading data with your perl scripts. |
thanks for the update on this. You aren't planning to attend PAG this year, by any chance? If so, we might see if we could find a time to sit down with someone from the tripal core development group and talk about a path forward that would at least minimize the confusion, if not actually try to get the independent development efforts re-synced with each other. If not, we'll find another opportunity for that... |
No, sorry I won't go to PAG this year. I might be able to go to GCC/BOSC in june, maybe there will be a gmod meeting as they did for gcc2016? For the time being, I'll just use the perl scripts, but on the long term you're right it would be good to sync with tripal developments. I'm not sure what's been ported from tripal2 to tripal3, I can have a look at it too as using tripal3 is also in my plans |
Hi,
I followed the instructions in the README to build the javascript. The commands succeeded, but I get a 404 error in my browser on app-bundle-4faf7ffa80.js.
I have this url which returns the expected js file:
http://localhost:3300/sites/all/modules/tripal_phylotree/theme/js/aurelia/scripts/vendor-bundle-9b7c49cfad.js
but then it tries to downloadhttp://localhost:3300/tripal/phylotree/scripts/app-bundle-4faf7ffa80.js
.I'm wondering if the app-bundle file should be placed somewhere else after being built, or if there is something to adapt in the src?
The text was updated successfully, but these errors were encountered: