First up install Radiant...
$ gem install radiant
and you'll also need the heroku gem...
$ gem install heroku
you might need to install a few dependencies for radiant to work notably some cucumber versions won't play ball, mine seemed happy straight off. So create a radiant app...
$ radiant oohsaucy
$ cd oohsaucy
Assuming you have git installed on your system
$ git init
$ git add .
$ git commit -m "The all new Ooh Saucy app"
Now time to do some Heroku magic
$ heroku create
$ git remote add heroku git@heroku.com:oohsaucy.git
so now we have version control hooked up to Heroku's repo we can start developing the app.
First thing is to configure gems so that when we push to Heroku it knows our app's dependencies...
$ vi .gems
and add the lines
rails -v=2.3.5
radiant
save the file
$ git add .gems
$ git commit -m "Gem dependencies for Heroku deployment"
now do your thing with the application locally and when you are ready to hit the big red launch button...
$ git push heroku master
and because it's a radiant app we need to bootstrap the production db
$ heroku rake db:create:all
$ heroku rake db:migrate
$ heroku rake production db:bootstrap
now you might want to seed a bit of data you set up in development (no doubt some people will frown at this, frown away, this is about expedient development not chin scratching theory).
$ heroku db:push
this exports your local db to heroku's production db.
You're done. Heroku will give you back the url your app is deployed to in the console so you can configure your domain name DNS accordingly.
blog comments powered by Disqus