Hey everybody,
With the Web Appbuilder V1.0 I was able to just grab one of my apps and host them via github, as seen here:
ArcGIS Web Application
With the Web Appbuilder V1.1 I get an error, as seen here:
Any insight would be great!
Thanks,
Tim
Tim Witt,
OK here is what I found. By default Github pages do not publish files with certain file name structures. I found this document to explain and give a work around.
Files that start with an underscore are missing - User Documentation
I don't really know what jekyll is, but I put in a .nojekyll file (the .nojekyll file is blank) in the root of the repository. I added it to the gh-pages branch too but for some reason it did not take. I deleted the gh-pages branch and recreated it and it looks to be working now.
-Stan
Stan,
that's it! Thanks for the research. I was looking and looking but couldn't find it....
Junshan Liu
It seems that github has an issue with opening files that are hosted starting with an underscore. This is the error.
Could you post the error when loading widget?
I got the 2nd link going, but when I open my widget it does't load. I think github has an issue loading files that start with a underscore?
Larry,
I fixed that but now other errors pop-up. I guess building it on my own machine, makes it look for all the resources locally instead of the ESRI hosted resources.
Tim,
Chrome Developer Tools are showing this:
1. The one that works is getting init.js from http://js.arcgis.com/3.12/init.js
2. The one that isn't working is trying to get init.js from http://timw1984.github.io/http://timw1984.github.io//jsapi/jsapi/init.js and showing a 404 file not found error.
Larry
Now it works!
Karsten
Karsten Rank
does the first link work now?
Thanks Karsten,
looking at the developer console, it calls the arcgis_js_library from my local machine. I would have to change that somehow.
Hi Tim,
both links don't work with chrome.
Greetings,
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.