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 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.rb:281:in `require'
>         from /usr/local/lib/ruby/1.9.1/irb/init.rb:281:in `block in
> load_modules'
>         from /usr/local/lib/ruby/1.9.1/irb/init.rb:279:in `each'
>         from /usr/local/lib/ruby/1.9.1/irb/init.rb:279:in `load_modules'
>         from /usr/local/lib/ruby/1.9.1/irb/init.rb:20:in `setup'
>         from /usr/local/lib/ruby/1.9.1/irb.rb:53:in `start'
>         from /usr/local/bin/irb:12:in `'
>
> It seems like Sinatra isn't there!
>
> Any ideas?
>
> cheers,
>
> DAZ
>
> On Nov 23, 5:59 pm, Adam Wiggins  wrote:
>
>
>
>
>
>
>
> > 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
>
> > On Heroku:
>
> >     $ heroku run 'bundle exec irb -r ./web'
>
> > Adam

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



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.rb:281:in `require'
from /usr/local/lib/ruby/1.9.1/irb/init.rb:281:in `block in
load_modules'
from /usr/local/lib/ruby/1.9.1/irb/init.rb:279:in `each'
from /usr/local/lib/ruby/1.9.1/irb/init.rb:279:in `load_modules'
from /usr/local/lib/ruby/1.9.1/irb/init.rb:20:in `setup'
from /usr/local/lib/ruby/1.9.1/irb.rb:53:in `start'
from /usr/local/bin/irb:12:in `'

It seems like Sinatra isn't there!

Any ideas?

cheers,

DAZ


On Nov 23, 5:59 pm, Adam Wiggins  wrote:
> 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
>
> On Heroku:
>
>     $ heroku run 'bundle exec irb -r ./web'
>
> Adam

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



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

On Heroku:

$ heroku run 'bundle exec irb -r ./web'

Adam

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: i can't able to deploy my database backup b004.dump file to my heroku app

2011-11-23 Thread John McCaffrey
Yeah I do a similar thing to back up my data from a production site to my
staging/test site.

on prod account
  # grab temp URL of the recent backup
  heroku pgbackups:url b016

on staging account
  # use that URL from above as source to restore from
  heroku pgbackups:restore DATABASE 'https://s3.amazonaws.com/'

but I also keep a sep copy of the backup, just in case.

On Wed, Nov 23, 2011 at 7:26 AM, Bilal Basharat
wrote:

> im restoring from a b004.dump file. the file has been recieved from
> another application instance on another heroku account. well my problem is
> resolved when i verified my account.
> in this way , i was able to add pgbackups. i use this command to restore
> database
> first i install this addon:
>
>
> $ heroku addons:add pgbackups
>
> than restore my database to the current heroku application by using
>
> $ heroku pgbackups:restore DATABASE '
> http://s3.amazonaws.com/.mydb.dump?authparameters'
>
> instead of s3. i put backup file to the public folder of dropbox and got
> the public url and paste it in the above line.
>
>
> --
> Regards,
> Bilal Basharat
> Software Developer | Developers Inc.
>  
> 
> skype: bilal.devsinc | web: http://www.devsinc.com
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Heroku" group.
> To post to this group, send email to heroku@googlegroups.com.
> To unsubscribe from this group, send email to
> heroku+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en.
>



-- 
Thanks,
-John

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: fatal: Not a git repository (or any of the parent directories): .git

2011-11-23 Thread DAZ
I solved this.

It was because the Data models had not been migrated.

I managed to do this by including the line
DataMapper.auto_migrate!

in the actual code.

The problem I know have is that I can't access the app through the
console in order to populate the database.

I have submitted another post about this.

DAZ



On Nov 22, 10:12 pm, DAZ  wrote:
> Hi,
>
> I've just created a new app on the Cedar stack and keep getting the
> following message in the logs:
>
>     fatal: Not a git repository (or any of the parent
> directories): .git
>
> I have created a git repository and a remote called heroku was created
> when I created the app.
>
> I can push to the app, but the page will not load and I can't access
> anything from the console.
>
> Does anybody know what is going wrong?
>
> cheers,
>
> DAZ

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



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 console so that when it runs the app and all its
gems are included?

Any ideas how I can access my app?

cheers,

DAZ

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: i can't able to deploy my database backup b004.dump file to my heroku app

2011-11-23 Thread Bilal Basharat
im restoring from a b004.dump file. the file has been recieved from another
application instance on another heroku account. well my problem is resolved
when i verified my account.
in this way , i was able to add pgbackups. i use this command to restore
database
first i install this addon:

$ heroku addons:add pgbackups

than restore my database to the current heroku application by using

$ heroku pgbackups:restore DATABASE '
http://s3.amazonaws.com/.mydb.dump?authparameters'

instead of s3. i put backup file to the public folder of dropbox and got
the public url and paste it in the above line.


-- 
Regards,
Bilal Basharat
Software Developer | Developers Inc.
 

skype: bilal.devsinc | web: http://www.devsinc.com

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to heroku@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.