-
Notifications
You must be signed in to change notification settings - Fork 5
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
Enable pulling from private Github repos #3
Conversation
Adds the `GITHUB_ORG` environment variable which contains an API key allowing the server to pull private repos from data-8. Also adds a `BASE_URL` environment variable which allows the master branch to be deployed to both ds8 and data8.
Enable pulling from private Github repos
Sam, Not having a convenient repo within data8 I set up a public personal repo. My test is to put the interact blank link in the index.html in the gh-pages David E. Culler On Thu, Jan 21, 2016 at 7:47 PM, Sam Lau notifications@github.com wrote:
|
Hey David, sorry for the late reply; right now the interact server is hardcoded to pull from data-8 repos. I forked your repo to https://github.com/data-8/ds-connect so you can make links work with that for today since we don't have much time. |
Eg. using links like
|
Ahh, while sitting class I got John to create cs-connector. All of one #1 These links all open up the clone of the repo rather than the file at #2 I discovered going through this with the connector instructors that David E. Culler On Fri, Jan 22, 2016 at 11:03 AM, Sam Lau notifications@github.com wrote:
|
This one give me the repo directory, not the file. Is that what it does
|
Yup, for now. See data-8/connector-instructors#16 |
This implements issue #16: Right now, hitting a url like: https://data8.berkeley.edu/hub/interact?repo=data8assets&path=labs/lab01 Results in the student being redirected to the root of the repo: `data8assets`. Instead, it'd be more convenient if the student were redirected to the path given in the URL: `data8assets/labs/lab01`. Since you can specify multiple values for `path` in the URL, eg. https://data8.berkeley.edu/hub/interact?repo=data8assets&path=labs/lab01&path=labs/lab01/lab01.ipynb The last path will be chosen to redirect to. In the above example, the student will be sent directly to the notebook. See the discussion in #15 and #3 . Resolves #16
Adds the
GITHUB_ORG
environment variable which contains an API keyallowing the server to pull private repos from data-8.
Also adds a
BASE_URL
environment variable which allows the masterbranch to be deployed to both ds8 and data8.
Resolves data-8/connector-instructors#9 .