Web AppBuilder & Github

4969
11
Jump to solution
05-28-2015 11:42 AM
TimWitt2
MVP Alum

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:

ArcGIS Web Application

Any insight would be great!

Thanks,

Tim

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
StanMcShinsky
Occasional Contributor III

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

View solution in original post

11 Replies
KarstenRank
Occasional Contributor III

Hi Tim,

both links don't work with chrome.

Greetings,

Karsten

TimWitt2
MVP Alum

Thanks Karsten,

looking at the developer console, it calls the arcgis_js_library from my local machine. I would have to change that somehow.

Tim

0 Kudos
TimWitt2
MVP Alum

Karsten Rank

does the first link work now?

Tim

0 Kudos
KarstenRank
Occasional Contributor III

Now it works!

Karsten

0 Kudos
LarryStout
Occasional Contributor III

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

TimWitt2
MVP Alum

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

0 Kudos
TimWitt2
MVP Alum

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?

0 Kudos
JunshanLiu
Occasional Contributor III

Could you post the error when loading widget?

0 Kudos
TimWitt2
MVP Alum

Junshan Liu

It seems that github has an issue with opening files that are hosted starting with an underscore. This is the error.

git.png

Tim