Re: Cannot acces app in Console

2011-11-27 Thread DAZ
Hi, I got some help on the Sinatra google groups page that helped solve this problem. The solution was to put the bundler stuff in my main.rb file rather than config.ru for it to work in the console. I still get an error when I run the following on Heroku: $ heroku run 'bundle exec irb -r ./main

Re: Cannot acces app in Console

2011-11-23 Thread DAZ
Actually I get the same error locally, so it isn't a heroku issue, but any help would be appreciated! cheers, DAZ On Nov 23, 7:35 pm, DAZ wrote: > Thanks Adam, > > It's a Sinatra app. Tried this and got an error: > > $ heroku run 'bundle exec irb -r ./main' > Running bundle exec irb -r ./main a

Re: Cannot acces app in Console

2011-11-23 Thread DAZ
Thanks Adam, It's a Sinatra app. Tried this and got an error: $ heroku run 'bundle exec irb -r ./main' Running bundle exec irb -r ./main attached to terminal... up, run.15 /app/main.rb:2:in `': undefined method `set' for main:Object (NoMethodError) from /usr/local/lib/ruby/1.9.1/irb/init.

Re: Cannot acces app in Console

2011-11-23 Thread Adam Wiggins
What do you run locally to get a console? Whatever it is, prefix it with `heroku run` and you should be set. e.g. if you normally type: $ bundle exec rails console Then to run remotely: $ heroku run 'bundle exec rails console' Or if it's a Sinatra app: $ bundle exec irb -r ./web

Cannot acces app in Console

2011-11-23 Thread DAZ
I can't access my app via the console. If I type $> heroku run console -r ./main $irb>Card.all I get an error message, where I would expect [] Other commands don't recognize the app as being loaded. The app is running on the cedar stack and has a Procfile - could this be used to set up the con