3 ms·
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 g
by TazeTSchnitzel 14y ago
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.
- deleted 14y ago[deleted]
- icebraining 14y agoI just git push to the server from my laptop over SSH. No need for a git server (or Github, for that matter).
- TazeTSchnitzel 14y agoI should really try that... thanks! Edit: Oh wow, I didn't realise I could just do this: git push ssh://example.com/git/repo
- chrisrhoden 14y agoSSH is the transport you're using when you use github. git@github.com:git/repo.git tells git to SSH using the 'git' user.
- kcbanner 14y agoThis is what I do. Works great!
- g3orge 14y agocan you explain more about the nginx thing? Since it's a GitHub repo, why you need a web server?
- TazeTSchnitzel 14y agoOh, 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)
- Sivart13 14y agoI think the big advantage for people wanting to host a site on Heroku is they explicitly DON'T need their "own server".
- TazeTSchnitzel 14y agoI 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.