Henrymart
Henrymart

Reputation: 122

How to import files from github and host it on any other site

I guess this is not the best place to post this. Please if it is not accepted here can you point me to another StackOverflow site where I can post this.

Here is what I am asking.

I have an index.html which I want to import and host to my openshit Redhat account. https://github.com/areaboy/myfirstdata/tree/master/adminmanager/index.html

my issue is that when I entered the above url in my openshift redhat Import source location. It throws errors.

Please what is the proper way of cloning the git files and then upload to openshift Below is the screenshot of the openshift Import Git repository url:

enter image description here

Upvotes: 0

Views: 483

Answers (2)

Somil  Garg
Somil Garg

Reputation: 474

You will have to give the .git url of your repository not the path of your index.html file for importing.

enter image description here

Go to url:- https://github.com/areaboy/myfirstdata

Click on the clone or download button you will get the url for your git repository now give this url while importing.

enter image description here

Copy the url and give it while importing the project in openshift.

Upvotes: 1

Vincent
Vincent

Reputation: 591

It's asking for a repository URI, in your case it would be

https://github.com/areaboy/myfirstdata

Then I don't know if your file needs to be at the root of your repository or if you can give him a path later on.

Also note that it's asking for a http URI and Github is using https.

Upvotes: 0

Related Questions