Take the 2-minute tour ×

Can I use Heroku to deploy an HTML prototype?

My HTML prototypes live on Github and Heroku would be a nice way to deploy them so clients can view them.

It seems that this is unsupported, since Heroku expects a Rails/NodeJS/[insert language here] structure or it won't run.

Push rejected, no Cedar-supported app detected

Are there any tricks to circumvent this?

share|improve this question
add comment

3 Answers

I've not done it before but since you mentioned using github. Why not use Github Pages to show the prototype.

share|improve this answer
I need the URLs to be unguessable and private. –  Wolfr Jun 27 '13 at 12:48
Ah fair enough. My Apologies. Interpreted it as you wanting to display a portfolio. –  IainS Jun 27 '13 at 12:53
add comment

The least effort solution is to rename your default file to index.php and redeploy. Heroku will detect it as a PHP site and use that buildpack.

Alternatively, you can follow this guide https://devcenter.heroku.com/articles/static-sites-ruby to set up a sinatra app to host it.

share|improve this answer
Thanks for the ideas. I use Jekyll so renaming my main file to .php specifically for deployment would break my dev flow. This wouldn't really make it "automatic" anymore which is more or less the point of using Heroku. –  Wolfr Jun 27 '13 at 13:14
in that case, use a Jekyll buildpack :) github.com/mattmanning/heroku-buildpack-ruby-jekyll –  John Beynon Jun 27 '13 at 13:15
This would be a nice idea if Jekyll was the only part of the build. However, I use a "complicated" build system involving multiple parts (see github.com/happyplan/happyplan - jekyll, compass, image compression etc. ) so basically I want to be able to upload the compiled "result" of my build process and not the actual Jekyll files. I figure there must be a solution for this since for example Angular apps will also be "just HTML". –  Wolfr Jun 27 '13 at 13:20
add comment

You can always use an nginx buildpack to run nginx on heroku:


I've used it with great success to handle a large batch of complex redirects and act as a reverse proxy to a new heroku app for an old, defunct application. Here's a simple config example that will get a static site up and running: https://gist.github.com/leklund/5877422.

share|improve this answer
add comment

Your Answer


