dxcamps / MicrosoftIntelIoTCamp

49 stars 46 forks source link

Deploy web app may fail if source of web app downloaded as part of a git clone of the MicrosoftIntelIoTCamp github repository. #12

Open jrvjrv opened 6 years ago

jrvjrv commented 6 years ago

I may have missed a step somewhere, but I ran into a problem running the HOL. I downloaded the HOL using "git clone https://github.com/dxcamps/MicrosoftIntelIoTCamp.git" instead of downloading the .zip. This didn't seem like it should be an issue. I opened a vs code window in HOLs/WebApp and made the appropriate changes. Starting with the section "Deploying the Web App to Azure", I found I did not have a "initialize git repository" button, but I was able to commit the changes so I continued. The command "git remote add origin " also failed, but I "fixed" this by changing the existing url (which was the clone url) to the azure web app url using git remote set-url. I then deployed the code. When I visited the web site I got a permissions exception. That was because the root of the git repository was not at the root of the web app but rather several layers above it. The "root" pages of the web app were actually several directories down, and they didn't work correctly anyway.

Either the instructions should make it clear that the HOL should be downloaded as .zip only, they should have a step where the web app is copied to a new directory that is not under the current github clone, or they should remove the exising github directory before working on the web app.