Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Installation  >  Tracks on a web host  >  Thread
   
 
Tracks on Heroku howto
 
hgavin
Posted: 06 May 2009 09:27 PM   [ Ignore ]  
Newbie
Rank
Total Posts:  1
Joined  2009-05-04

heroku.com is a new way of hosting rails apps that takes away lots of the pain.  I got a tracks installation up and running there, so I thought I’d pass on some info about what I did.  It’s from memory, but I’ll try and cover the main points.

1) Register for heroku and get familiar with it.  Take a look at the site and learn about the way it integrates so nicely with git. To use Heroku it helps to be familiar with rails and git, but it’s still easier than most rails deployments.  You’ll have to install the heroku gem using “[sudo] gem install heroku”

2) checkout Tracks from github.  I checked out the master branch a couple of days ago, and it seems to work fine for me.

3) Customise Tracks for heroku. 
  a) This is the key bit.  Heroku runs your app on a read-only file system, so bundle-fu can’t write to the local directory like it wants.  I worked around this by commenting out the <bundle do>  and <end> lines in app/views/layouts/standard.html.erb.  Unless you do this you’ll get errors as soon as you view a page.
  b) Copy config/site.yml.tmpl to config/site.yml, customise it as required, and check it in to git.  This is important because we need git to upload it to heroku, so it needs to be checked in.  You might have to remove the site.yml line from .gitignore to achieve this.  There’s no need to customise database.yml, heroku will do this automatically on the server.
  c) In the tracks directory, type “heroku create”.  This will return a URL and remote git URI, as well as configuring a remote in git called heroku

4) Upload.  Type “git push heroku master”.  Heroku will compile tracks server side, and hopefully print a success message

5) type “heroku open” and your new site should appear.

6) Optional - add a CNAME record to a personal domain and get heroku to recognise it. See http://docs.heroku.com/custom-domains


This is from memory, and now I’ve written it down it looks more complicated than I intended, but I wanted to recommend Heroku, and give some tips on how to host Tracks there.

Hope it helps,

Gavin.

Profile
 
Reinier Balt
Posted: 07 May 2009 06:37 PM   [ Ignore ]   [ # 1 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

I’ve copied your howto to the wiki here: http://www.getontracks.org/wiki/Heroku/

Profile
 
   
 
 
‹‹ No style      Server keeps stopping on bluehost (unix using cPanel) ››

Powered By ExpressionEngine
Template Design By Sonnenvogel.com
Select a theme:

ExpressionEngine Discussion Forum - Version 2.1.2 (20091002)
Script Executed in 0.0954 seconds

Atom Feed
RSS 2.0