Hi everybody,

This is my first post. Sorry by advance for my poor english, I'm not really 
fluent.

I'm a beginner with Rails 3, and I've developed a photos blog in order to 
learn rails. On my development machine, everything is working fine. Since 
Sunday, I'm trying to get my application on a remote server in order to run 
it in production mode. 

I'm using Nginx + unicorn on this server, following this tutorial (in 
french) ; 
http://techubhq.com/articles/curiousg/mise-en-production-dune-application-rails-3-sous-ubuntu-1004
 

On my development machine, i'm using capistrano.

When I run bundle exec cap deploy, I have an error when the script tries to 
restart unicorn :

master failed to start, check stderr log for details

If I check unicorn.stderr.log, I have the following error : 

/home/nginx/www/site-photos/shared/bundle/ruby/1.8/gems/activerecord-3.1.2/lib/active_record/connection_adapters/sqlite_adapter.rb:439:in
 
`table_structure': Could not find table 'categories' 
(ActiveRecord::StatementInvalid)

It seems that it tries to access to an other database than the production 
one because in the production database there is the table 'categories'.

If I start unicorn directly on the production server, everything is ok.

A second problem, probably due to the first one, is that, each time I run 
bundle exec cap deploy, the script reset my production database. It plays 
all the migration files ...

I have no idea how to solve this problem.

Thank you by advance for your help.

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to