err, or you could just upload index.html to any shared hosting in 5 minutes? The trouble of making a site (at least for people who can edit html directly, as in this example) is not about how to do it, but about high expectations and standards that we impose on ourselves... I'm guilty of this mysqlf, my site hasn't been updated in like 5 years, and I've built dozens of sites for others in that period...
> I'm guilty of this mysqlf A typo only someone from this community would make.
Make This in an Hour
91–100 of 103 posts
Re: Make This in an Hour
#92Student here. Why do you run a localhost web server before pushing to git? Is this a git thing? (I am a newbie to github). Thanks. I like this nice short article.
It's not necessary for git, no. However, it's a really good habit to get in—you make some changes to the project and then test it locally before pushing your changes to your git repo (on github and/or elsewhere). This way, you make sure your changes didn't break something that was previously working. Now as to why start the simple http server to check your work vs. opening the index.html file directly in the browser:…
Re: Make This in an Hour
#93err, or you could just upload index.html to any shared hosting in 5 minutes? The trouble of making a site (at least for people who can edit html directly, as in this example) is not about how to do it, but about high expectations and standards that we impose on ourselves... I'm guilty of this mysqlf, my site hasn't been updated in like 5 years, and I've built dozens of sites for others in that period...
The OP's one-hour recipe is strictly better for a pure static site, because it's substantially cheaper than shared hosting (which is $5/mo, github pages is free). Note that shared hosting provides persistent compute/store capability, which this project doesn't need.
Also, don't github pages need to be deployed to the gh-pages branch?
Re: Make This in an Hour
#94Earlier quoted context omitted.
You can make a github page for each project, but it walks me through a process that forces me to use their template and my own markdown, not able to actually upload html/css etc. I suppose I could create another github account though, but not sure if I want to do that every one-off site I want to put up.
You can definitely create github pages for each repo, using your own html/css/js. You just need to create a gh-pages branch [1]. If you just want to host a new static site, you can even create a new repo just for that, create a gh-pages branch, then make it the default branch and delete the master branch, leaving you with only the gh-pages content [2]. [1] https://help.github.com/articles/creating-project-pages-manu.…
Re: Make This in an Hour
#95Earlier quoted context omitted.
It's not necessary for git, no. However, it's a really good habit to get in—you make some changes to the project and then test it locally before pushing your changes to your git repo (on github and/or elsewhere). This way, you make sure your changes didn't break something that was previously working. Now as to why start the simple http server to check your work vs. opening the index.html file directly in the browser:…
3) AJAX won't work (since there's no HTTP backend to talk to)
Re: Make This in an Hour
#96Earlier quoted context omitted.
It's not necessary for git, no. However, it's a really good habit to get in—you make some changes to the project and then test it locally before pushing your changes to your git repo (on github and/or elsewhere). This way, you make sure your changes didn't break something that was previously working. Now as to why start the simple http server to check your work vs. opening the index.html file directly in the browser:…
3) AJAX won't work (since there's no HTTP backend to talk to)
Re: Make This in an Hour
#97git push origin gh-pages or he'll still no see anything :P
Re: Make This in an Hour
#98This gave me a great idea. There should be a website with a bunch of programming challenges (e.g like making a Todo list app or write a data structure in an hour) where you can share your code and workflow. You could then view a bunch of other peoples workflows, code, and post mortem notes and discuss how to improve each others workflows. Anybody know of a site like this?
Re: Make This in an Hour
#99Re: Make This in an Hour
#100I'm using github pages to host a website of mine, and I need another. Can anyone recommend a cheap/reliable simple html/css/js website host? No need for wordpress installation, Rails, etc.
Netlify is awesome. Can even run a build process (similar to github pages) but using just about any static site generator. [1] https://www.netlify.com