News for hackers. Stuff that matters.
Re:Static Sites on Heroku by TazeTSchnitzel on Sunday June 03, 2012 @08:01AM (#4060578)
Heroku for a static site? Sounds like overkill. On my VPS I just do this:

1. Have public git repo, clone on server

2. Run nginx pointing to htdocs folder in git repo

3. When I want to deploy, ssh in and git pull

Works just fine. Sure, it's a public site on GitHub, but I could just as easily run a git server.

Re:Static Sites on Heroku by icebraining on Sunday June 03, 2012 @09:23AM (#4060698)
I just git push to the server from my laptop over SSH. No need for a git server (or Github, for that matter).
Re:Static Sites on Heroku by TazeTSchnitzel on Sunday June 03, 2012 @04:07PM (#4061635)
I should really try that... thanks!

Edit: Oh wow, I didn't realise I could just do this:

  git push ssh://example.com/git/repo
Re:Static Sites on Heroku by chrisrhoden on Sunday June 03, 2012 @05:23PM (#4061790)
SSH is the transport you're using when you use github.

[email protected]:git/repo.git tells git to SSH using the 'git' user.

Re:Static Sites on Heroku by kcbanner on Sunday June 03, 2012 @10:49AM (#4060845)
This is what I do. Works great!
Re:Static Sites on Heroku by g3orge on Sunday June 03, 2012 @11:34AM (#4061000)
can you explain more about the nginx thing? Since it's a GitHub repo, why you need a web server?
Re:Static Sites on Heroku by TazeTSchnitzel on Sunday June 03, 2012 @11:48AM (#4061044)
Oh, I guess I could use GitHub hosting, but I wanted to host it on my own server. (I actually have a good reason to - I needed to access a WebSocket server on the same origin)
Re:Static Sites on Heroku by Sivart13 on Sunday June 03, 2012 @02:41PM (#4061473)
I think the big advantage for people wanting to host a site on Heroku is they explicitly DON'T need their "own server".
Re:Static Sites on Heroku by TazeTSchnitzel on Sunday June 03, 2012 @03:59PM (#4061621)
I don't see the advantage of that. For small static sites I don't think it's much more hassle to put CloudFlare in front of your server. The advantage of such services is scaling up dynamic sites easily.