happy_hacking icon indicating copy to clipboard operation
happy_hacking copied to clipboard

Live version of the website

Open drex44 opened this issue 7 years ago • 12 comments

I couldn't find the live version of the website hosted anywhere. It would be awesome to check the latest code somewhere live.

so it can be hosted somewhere on notify, surge or similar providers. they don't charge for static websites!

drex44 avatar Oct 06 '18 07:10 drex44

Yup I agree, I was thinking of starting a gh-pages branch and hosting it on github. Will do it in a day's time. If you have any other better suggestions do let me know.

sudz123 avatar Oct 06 '18 07:10 sudz123

setting up gh-pages or netlify seems great option as everything committed to master branch can be deployed automatically.

drex44 avatar Oct 06 '18 09:10 drex44

can i work on this , i am new to this . i know how to deploy a static website on heroku but would need help to understand gh-pages or netlify?

Apoorva-13 avatar Oct 07 '18 07:10 Apoorva-13

Don't take up this issue. This one is for the maintainers. You will require a higher level of access to the code for this.

sudz123 avatar Oct 07 '18 07:10 sudz123

@sudz123 using netlify is pretty easy and will take only 10 minutes to set up. I have done it in my repos. It automatically deploys whenever new commit comes. I think you should do this one as soon as possible. it will be a big help for new contributors and will give motivation to existing contributors as they can see their work live!

P.S. I got inspired with your repo. Nice job.

drex44 avatar Oct 08 '18 15:10 drex44

Thanks @drex44 , the whole idea is to bring up new programmers to the open source community and get them started. I will be doing this, but when I do, I will be sharing this in a much broader community to show how this was achieved. I can only share this when I am satisfied with the site. Waiting on #212 , the moment this is closed, I will make the site go live.

sudz123 avatar Oct 08 '18 15:10 sudz123

@sudz123, I see your point! great. I will be waiting for this.

drex44 avatar Oct 08 '18 15:10 drex44

@drex44 I am having trouble using both gh-pages and netlify since our site is not to be built from the root directory. Do you know how this is done? We have multiple static pages to be hosted.

sudz123 avatar Oct 09 '18 11:10 sudz123

I haven't set up local dev env for this repo so give sometime. I will check it out and update you on how to configure it.

drex44 avatar Oct 09 '18 12:10 drex44

@sudz123 you have to keep the index.html file in the root of the repo or docs/ folder. currently, you have home.html. you have to rename it. then you can use gh-pages. I tried and tested it. it works just fine.

EDIT: but you have to edit the links in your other pages from home.html to index.html check this out! https://drex44.github.io/Happy_Hacking

drex44 avatar Oct 09 '18 13:10 drex44

@drex44 This is one way. I am also trying to find if it is possible to keep the same structure and build the site without renaming anything. Maybe add a script in root which will redirect to home.html in src. If this is not possible I will do what you are suggesting. Do you know of any such functionality which github provides? Otherwise I will have to hard code a script maybe.

sudz123 avatar Oct 09 '18 13:10 sudz123

if you don't want to change anything then try using heroku with express.js to serve static sites. this will require you to add server.js file and forward requests coming to home.html from index.html.

drex44 avatar Oct 10 '18 10:10 drex44