Git heroku error

5 views
Skip to first unread message

Pedro

unread,
Sep 2, 2010, 11:26:42 AM9/2/10
to Refinery CMS
Hi,

I have a website deployed on heroku, but my local git repository was
ereased, so I m trying to create a new local repository pulling my
deployed site. I run : git clone -o heroku g...@heroku.com:my_app.git,
but now when I run script/server I get this error msg:

pedro@ubuntu:~/proj/my_app$ script/server
=> Booting WEBrick
=> Rails 2.3.8 application starting on http://0.0.0.0:3000
/usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:902:in
`read': No such file or directory - /home/me/proj/my_app/config/
database.yml (Errno::ENOENT)
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:
902:in `database_configuration'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:
437:in `initialize_database'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:
141:in `process'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:
113:in `send'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:
113:in `run'
from /usr/lib/ruby/gems/1.8/gems/refinerycms-0.9.7.12/vendor/plugins/
refinery/lib/refinery/initializer.rb:54:in `run'
from /home/pedro/proj/embaixada/config/application.rb:10
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/
active_support/dependencies.rb:156:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/
active_support/dependencies.rb:156:in `require'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/
active_support/dependencies.rb:521:in `new_constants_in'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/
active_support/dependencies.rb:156:in `require'
from /home/me/proj/my_app/config.ru:2
from /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/builder.rb:46:in
`instance_eval'
from /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/builder.rb:46:in
`initialize'
from /home/me/proj/my_app/config.ru:1:in `new'
from /home/me/proj/my_app/config.ru:1
from script/server:3:in `eval'
from /usr/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/commands/server.rb:
78
from script/server:3:in `require'
from script/server:3
pedro@ubuntu:~/proj/my_app$ git clone -o heroku
g...@heroku.com:my_app.git


+++++++++++++++++++++++++++++++++++++++++++++++++

Im new to it, so does anybody can help me?

Thanks,

Pedro

Glenn Goodrich

unread,
Sep 2, 2010, 11:48:38 AM9/2/10
to refine...@googlegroups.com
Pedro,

Do you have a database.yml in the config dir?  It seems to be complaining about that file.

Glenn




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

http://www.refinerycms.com


riccardo

unread,
Sep 3, 2010, 5:27:14 AM9/3/10
to Refinery CMS
Hi Pedro.
Heroku rebuild database.yml as per it's configuring purpose, when
setting up app.
So i don't thin you can get back this file.

Hope it will help.
Riccardo


On Sep 2, 5:48 pm, Glenn Goodrich <glenn.goodr...@gmail.com> wrote:
> Pedro,
>
> Do you have a database.yml in the config dir?  It seems to be  
> complaining about that file.
>
> Glenn
>
> On Sep 2, 2010, at 11:26 AM, Pedro wrote:
>
>
>
> > Hi,
>
> > I have a website deployed on heroku, but my local git repository was
> > ereased, so I m trying to create a new local repository pulling my
> > deployed site. I run : git clone -o heroku g...@heroku.com:my_app.git,
> > but now when I run script/server I get this error msg:
>
> > pedro@ubuntu:~/proj/my_app$ script/server
> > => Booting WEBrick
> > => Rails 2.3.8 application starting onhttp://0.0.0.0:3000

Lee Irving(MagpieUK)

unread,
Sep 3, 2010, 5:46:47 AM9/3/10
to Refinery CMS
riccardo is correct you will need to recreate a local database.yml

Pedro

unread,
Sep 3, 2010, 10:25:30 AM9/3/10
to Refinery CMS
Thanks, I didnt know that.... I created an database.yml file, then I
run my app and got the msg from browser :
ActiveRecord::StatementInvalid

Could not find table 'refinery_settings'

Then I run rake db:setup

Then, it works and lead me to the first page setup, for the first user
setup. when I pressed "continue..." button, I got the follow error
msg:
===================================================================
NoMethodError in Users#new

Showing /usr/lib/ruby/gems/1.8/gems/refinerycms-0.9.7.12/vendor/
plugins/authentication/app/views/users/new.html.erb where line #14
raised:

undefined method `password' for #<User:0xb68c44dc>

Extracted source (around line #14):

11: </div>
12: <div class='field'>
13: <%= f.label :password %>
14: <%= f.password_field :password, :class => 'larger widest' %>
15: </div>
16: <div class='field'>
17: <%= f.label :password_confirmation %>


=====================================================================

Probably there are some steps to create a clone repository from
heroku. Do you know what have to be done, in order to have a working
clone from my Heroku app?

Thanks a lot!

Pedro

Glenn Goodrich

unread,
Sep 3, 2010, 10:35:30 AM9/3/10
to refine...@googlegroups.com

Lee Irving(MagpieUK)

unread,
Sep 3, 2010, 12:05:34 PM9/3/10
to Refinery CMS
All this means I think is that you are missing the database

Have a look at

http://blog.heroku.com/archives/2009/3/18/push_and_pull_databases_to_and_from_heroku/

This will allow you to pull a copy of your live database locally.

Philip Arndt

unread,
Sep 3, 2010, 12:56:08 PM9/3/10
to refine...@googlegroups.com
You need to run 

heroku restart

Also please upgrade to 0.9.7.13 Refinery: .12 has a few issues
Reply all
Reply to author
Forward
0 new messages