Hommer Smith
Hommer Smith

Reputation: 27852

Heroku kind of hosting for simple HTML/JS applications

I love using Heroku. I love the simplicity of doing git push into the server and have the Ruby on Rails app up and running.

I am doing a simple HTML/JS application and I am wondering if there is any free hosting that allows this simplicity of pushing the app just by doing git push.

Upvotes: 16

Views: 5801

Answers (1)

K Z
K Z

Reputation: 30453

These should answer your question:

  1. Static Sites on Heroku Cedar

    First, lets turn your site into a PHP "application":

    $ touch index.php

    Next, we can fully disable Apache's PHP engine:

    $ echo 'php_flag engine off' > .htaccess

    When you push this up, you'll have a bare Apache instance serving up the contents of your site to the world. Best yet, you can do all of the stupid .htaccess tricks that you could on on any traditional shared hosting platform.

  2. heroku-static-site

    A simple ruby + rack application for serving a basic static website

You might also want to check out github pages which provides free static hosting that can be updated with just a git push. The advantage of github pages over Heroku is that there won't be any Dyno Idling.

Upvotes: 12

Related Questions