rake gems:install fails because database.yml is not created yet
4 views
Skip to first unread message
Henning Kiel
unread,
Oct 2, 2009, 5:30:43 AM10/2/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubber
When setting up a staging instance, during the first deploy rubber
tries to run "rake gems:install" before a rubber:config has
transformed and placed all templates, including the database.yml. This
makes gems:install fail.
Does this happen to anyone else? Or is it maybe a problem with our
environment configuration inside the Rails app?
Matthew Conway
unread,
Oct 2, 2009, 10:49:18 AM10/2/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
If you need a workaround till the next gem release, add your needed gems to rubber.yml, and stub out the rubber task by adding the following to the bottom of deploy.rb:
rubber.task :install_rails_gems do end
Matt
Henning Kiel
unread,
Oct 6, 2009, 9:21:58 AM10/6/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubber
Yeah, I stubbed out the task, but in the mean time we have switched
over to install gems using the new gem bundler, and no longer use any
gem declarations in environment.rb. As the bundler does not depend on
any application code, this proved to be much more reliable.
matt (wr0ngway)
unread,
Oct 20, 2009, 12:02:37 PM10/20/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message