Forum: Rails deployment DB tables inexistant online but there in console

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Thierry D. (Guest)
on 2008-11-05 04:13

I'm quite close achiving my first Cap Deploy ... but something strange

- I did the "cap deploy" of the deploy.rb following:
set :application, "league"
set :repository,

set :deploy_to, "/var/www/#{application}"

set :user, 'root'

set :deploy_via, :export

namespace :deploy do
  desc "Restart the server"
  task :restart do
    run "cd #{release_path} && RAILS_ENV=production mongrel_rails stop
-P log/"
    run "cd #{release_path} && RAILS_ENV=production mongrel_rails start
-d -p 9191 -P log/"

role :app, ""
role :web, ""
role :db,  "", :primary => true

- I had to do first: rake RAILS_ENV=production db:schema:load and import
my db.dump in production.sqlite3

- I tried in the console 'app.get("/")' gives me 200.

- BUT!!! When I access from the browser, it gives me a 500 error and on
the production.log it says that one table doesn't exist. When I access a
page that doesn't need db access (for example login), it works fine ....

What am I missing????

Thank you for your help,

This topic is locked and can not be replied to.