Chapter 1.4  of railstutorial.org taught me how to deploy a Rails app onto Heroku.

But how does one deploy a static app?

After some googling, I found this from lemiffe.com.

The standard index.html file would need to be renamed into something like home.html, and the index.php file would have to include
< ? php include_once("home.html"); ? >.

And then — voila!

1. cd into the directory
2. Make sure you commit your files.
3. heroku create
4. git push heroku master

The terminal will spit back to you a URL on herokuapps.com. Finally, if you want to rename it, just use the following command:

heroku rename newname

blog comments powered by Disqus
  • Hi, I'm Linda! I enjoy going to tech meetups, learning web development, and blogging about the learning path. Follow me @LPnotes

Subscribe to The Coding Diaries