Live data from Hacker News

Static Sites on Heroku

anti-pattern.com

1–10 of 41 posts

Re: Static Sites on Heroku

#4
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

#6
You know, static hosting works really great on Amazon S3, as long as you don't need a .htaccess file. On all of my jekyll sites I use S3 now and there's even a jekyll-s3 gem that makes pushing your site up to S3 painless. The nice thing about using S3 is you don't have to wait for Heroku instance start up if it's not a high traffic site.

Re: Static Sites on Heroku

#7

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]

Re: Static Sites on Heroku

#9

You know, static hosting works really great on Amazon S3, as long as you don't need a .htaccess file. On all of my jekyll sites I use S3 now and there's even a jekyll-s3 gem that makes pushing your site up to S3 painless. The nice thing about using S3 is you don't have to wait for Heroku instance start up if it's not a high traffic site.

I am using S3 also and it is surprisingly easy. For a small site the cost is close to nothing.

Re: Static Sites on Heroku

#10

Nice, but what about a mail server on your custom domain? I think its not that easy according to this post anyway ... http://xtargets.com/2010/10/04/using-gmail-for-email-on-a-he...

Adding MX records for gmail and adding A records / CNAMEs for Heroku are pretty much orthogonal. They shouldn't conflict with each other.
Post reply on HN