Closed fjsnogueira closed 8 years ago
Can you provide some details about what this does, in technical terms? I have quite a few questions:
Sorry for the wall of text 😅
this is a copy of smartGuitar/www to docs folder, witch is the source code of the app that doesn't need to bee compiled to run
Thanks for the clarifications, and I see that indeed the app runs as expected in https://teamofone.github.io/psc16-team33/docs/index.html
That said, I think you misunderstood my question 5. I meant that the folder for the static copy of the site should be called something other than "docs".
In fact, I just realized that if I open https://teamofone.github.io/psc16-team33/smartGuitar/www/ the app already works, so making a full copy of this folder is redundant, no?
@waldyrious yes it is redundant, and already works, but just because I named the branch gh-pages and you haven't merged the gh-pages with master branch and haven't deleted the branch, once you delete de branch you no longer be able to open the app from https://teamofone.github.io/psc16-team33/smartGuitar/www/ and the only one url will be https://teamofone.github.io/psc16-team33 after changing the repo settings to point to docs folder, this is mostly a matter of URL "frindeliness" .After pointing the gh pages to the docs folder the URL to the app will be shorter and simpler i.e. https://teamofone.github.io/psc16-team33 instead of https://teamofone.github.io/psc16-team33/smartGuitar/www/, and less redundant than maintaing to branches with the same code
@waldyrious just think about the workflow of adding a feature, if you keep the statically hosted app in a separed branch you will need to checkout that branch update it accordingly to the master branch and then make a commit, but if you instead just update de folder docs with the content of the www folder , you no longer need to switch and maintain two branches and keep it in sync. (this is a simplified workflow, the actual workflow implies another branch for the feature)
Good points, I agree with all of them. I was hoping that we could point the Github Pages to the smartGuitar/www folder directly, rather than making a copy of it, but according to https://help.github.com/articles/configuring-a-publishing-source-for-github-pages/ they only support a folder specificaly named "docs" (which I find rather limiting, but I suppose they have their reasons). I wonder if we make a symlink from docs to smartGuitar/www it would work. That would allow us to avoid a duplication of the files. Shall we try?
I made a PR to test that hypothesis: #42
copied smartGuitar/www to docs folder to be able to host statically the app in github pages, by pointing to the docs folder