How do you execute "rails runner" in Heroku?

I’m going through the 4th edition of the book Agile Web D.
in Rails
.

One of the exercises involves automatically creating 100 orders. The
command to run locally is “rails runner script/load_orders.rb”. I
have no problems here - it works.

What’s the command for running this in the deployed Heroku application?

2011/11/13 Jason H., Mr. Swift L. [email protected]:

What’s the command for running this in the deployed Heroku application?

I did a quick peek in the heroku docs:

http://devcenter.heroku.com/articles/oneoff-admin-ps

BUT! I cant use "heroku run rails ", some further digging in
the docs showed me, that on my stack (Bamboo) this is not possible,
you need to have the Cedarstack.
This is something that you can find with some thinking-around-corners :frowning:

Why I think it is like mentioned above:

These two in combination made me think that we need a Cedarstack to
use "heroku run rails ". Since the Cedarstack is the only
one that supports the assetpipeline, I think we should consider the
change :smiley:

It is a pitty that Cedar is not the default stack when creating new
apps…

HTH
Norbert

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs