Jun 12 Rails 2.3.2: checking your deployment works

tags: rails 2.3.2 deploy | comments

For some hours I have being struggling to make my fresh Rails 2.3.2 app go up on passenger. Everything was OK, you know fully BDD-ed, capistranized, but still no logs, no hoptoad, nothing was showing nothing about that annoying 500 error.

So I decided it was time to contact some debian master I know (the link shows a default page, because he is so busy he even have no time to set a blog, but it’ll leave it there to make some pressure on him)

At the end is pretty easy you know with the whole Rack wave, check it out what jorge did:

$ script/console production
Loading production environment (Rails 2.3.2)
>> app.get '/'
Mysql::Error: Access denied for user 'misustento_user'@'localhost' (using password: YES)
	from /home/deploy/misustento/releases/20090612153557/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:576:in `real_connect'
	from /home/deploy/misustento/releases/20090612153557/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:576:in `connect'

and yes, I haven’t really fully capistranize the whole process, there was no mysql db waiting for me, I forgot to set that task in the capistrano task chain. So hands on, and yes, everything back to normal.

blog comments powered by Disqus