OK- The rake db:migrate RAILS_ENV=production seemed to work, but the
application errored out. I have attached the output of the rake command
and the production.log if that helps...

Tim

On Thu, 2007-11-08 at 07:46 -0500, Luke Melia wrote:

> We haven't specifically addressed the upgrade scenario yet (though  
> this is clearly important for the 1.5 release). That said, you could  
> help us test it out!
> 
> * Make a copy of your database.
> * Configure the trunk version's database.yml to point at it as the  
> production database .
> * From the directory where you have the trunk run "rake db:migrate  
> RAILS_ENV=production"
> * Send us your output.
> * Start up Tracks in production mode.
> 
> It might just work. If not, we can make changes to support it.
> 
> 
> On Nov 8, 2007, at 7:37 AM, Tim Madden wrote:
> 
> > So I am new the tracks trunk and I have a question. I have been  
> > able to get it going with a blank database, but would like use my  
> > own tracks data in the new trunk database.  I am using MySQL on  
> > linux.  Is there a guide or quick way to do it?
> >
> > Thanks,
> > Tim
> > _______________________________________________
> > Tracks-discuss mailing list
> > [email protected]
> > http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss
> 
Application error (Apache)

Change this error message for exceptions thrown outside of an action (like in 
Dispatcher setups or broken Ruby code) in public/500.html

has_many_polymorphs: Rails environment detected
has_many_polymorphs: preloaded parent model Tag


Processing ApplicationController#list (for 127.0.0.1 at 2007-11-08 10:33:28) [GET]
  Session ID: 5c571869e29000b89df781172afa2526
  Parameters: {"action"=>"list", "controller"=>"todo"}


NameError (uninitialized constant TodoController):
    .//vendor/rails/activesupport/lib/active_support/dependencies.rb:266:in `load_missing_constant'
    .//vendor/rails/activesupport/lib/active_support/dependencies.rb:452:in `const_missing'
    .//vendor/rails/activesupport/lib/active_support/dependencies.rb:464:in `const_missing'
    .//vendor/rails/activesupport/lib/active_support/inflector.rb:250:in `constantize'
    .//vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb:148:in `constantize'
    .//vendor/rails/actionpack/lib/action_controller/routing.rb:1284:in `recognize'
    .//vendor/rails/railties/lib/dispatcher.rb:40:in `dispatch'
    .//vendor/rails/railties/lib/webrick_server.rb:113:in `handle_dispatch'
    .//vendor/rails/railties/lib/webrick_server.rb:79:in `service'
    /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
    /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
    /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
    /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
    .//vendor/rails/railties/lib/webrick_server.rb:63:in `dispatch'
    .//vendor/rails/railties/lib/commands/servers/webrick.rb:59
    /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
    /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
    .//vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require'
    .//vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
    .//vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require'
    .//vendor/rails/railties/lib/commands/server.rb:39
    script/server:3:in `require'
    script/server:3


uninitialized constant TodoController
./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:266:in `load_missing_constant'
./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:452:in `const_missing'
./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:464:in `const_missing'
./script/../config/../vendor/rails/activesupport/lib/active_support/inflector.rb:250:in `constantize'
./script/../config/../vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb:148:in `constantize'
./script/../config/../vendor/rails/actionpack/lib/action_controller/routing.rb:1284:in `recognize'
./script/../config/../vendor/rails/railties/lib/dispatcher.rb:40:in `dispatch'
./script/../config/../vendor/rails/railties/lib/webrick_server.rb:113:in `handle_dispatch'
./script/../config/../vendor/rails/railties/lib/webrick_server.rb:79:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
./script/../config/../vendor/rails/railties/lib/webrick_server.rb:63:in `dispatch'
./script/../config/../vendor/rails/railties/lib/commands/servers/webrick.rb:59
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require'
./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require'
./script/../config/../vendor/rails/railties/lib/commands/server.rb:39
script/server:3:in `require'
script/server:3
[EMAIL PROTECTED]:/var/www/trackstrunk$ rake db:migrate RAILS_ENV=production
(in /var/www/trackstrunk)
== AddSubclassAttrToTodos: migrating ==========================================
-- add_column(:todos, :type, :string, {:null=>false, :default=>"Immediate"})
   -> 0.0700s
-- add_column(:todos, :show_from, :date)
   -> 0.0256s
== AddSubclassAttrToTodos: migrated (0.1564s) =================================

== AddUserPrefRefresh: migrating ==============================================
== AddUserPrefRefresh: migrated (0.0203s) =====================================

== AddFirstAndLastNameToUser: migrating =======================================
-- add_column(:users, :first_name, :string)
   -> 0.0133s
-- add_column(:users, :last_name, :string)
   -> 0.0138s
== AddFirstAndLastNameToUser: migrated (0.0274s) ==============================

== PrefToShowHideSidebarItems: migrating ======================================
== PrefToShowHideSidebarItems: migrated (0.0406s) =============================

== AddPreferencesModel: migrating =============================================
-- create_table(:preferences)
   -> 0.0069s
== AddPreferencesModel: migrated (0.0071s) ====================================

== ConvertPreferences: migrating ==============================================
-- remove_column(:users, :preferences)
   -> 0.0064s
== ConvertPreferences: migrated (0.1795s) =====================================

== ConvertProjectToStateMachine: migrating ====================================
-- add_column(:projects, :state, :string, {:null=>false, :limit=>20, 
:default=>"active"})
   -> 0.0109s
-- remove_column(:projects, :done)
   -> 0.0075s
== ConvertProjectToStateMachine: migrated (0.0950s) ===========================

== AddVerboseActionDescriptorsPreference: migrating ===========================
-- add_column(:preferences, :verbose_action_descriptors, :boolean, 
{:null=>false, :default=>false})
   -> 0.0082s
== AddVerboseActionDescriptorsPreference: migrated (0.0122s) ==================

== AddUserAuthType: migrating =================================================
-- add_column(:users, :auth_type, :string, {:null=>false, :default=>"database"})
   -> 0.0110s
== AddUserAuthType: migrated (0.0113s) ========================================

== AddOpenIdTables: migrating =================================================
-- create_table("open_id_associations", {:force=>true})
   -> 0.0110s
-- create_table("open_id_nonces", {:force=>true})
   -> 0.0050s
-- create_table("open_id_settings", {:force=>true})
   -> 0.0038s
== AddOpenIdTables: migrated (0.0210s) ========================================

== AddUserOpenIdUrl: migrating ================================================
-- add_column(:users, :open_id_url, :string)
   -> 0.0232s
== AddUserOpenIdUrl: migrated (0.0235s) =======================================

== ConvertTodoToStateMachine: migrating =======================================
-- add_column(:todos, :state, :string, {:null=>false, :limit=>20, 
:default=>"immediate"})
   -> 0.0277s
-- rename_column(:todos, :completed, :completed_at)
   -> 0.0305s
-- remove_column(:todos, :done)
   -> 0.0218s
-- remove_column(:todos, :type)
   -> 0.0360s
== ConvertTodoToStateMachine: migrated (2.9657s) ==============================

== PrefToShowHiddenProjectsInSidebar: migrating ===============================
-- add_column(:preferences, :show_hidden_projects_in_sidebar, :boolean, 
{:null=>false, :default=>true})
   -> 0.0160s
== PrefToShowHiddenProjectsInSidebar: migrated (0.0162s) ======================

== AddTimeZonePreference: migrating ===========================================
-- add_column(:preferences, :time_zone, :string, {:null=>false, :limit=>255, 
:default=>"London"})
   -> 0.0123s
== AddTimeZonePreference: migrated (0.0126s) ==================================

== AddIndices: migrating ======================================================
-- add_index(:todos, [:user_id, :state])
   -> 0.0400s
-- add_index(:todos, [:user_id, :project_id])
   -> 0.0637s
-- add_index(:todos, [:project_id])
   -> 0.0562s
-- add_index(:todos, [:context_id])
   -> 0.0952s
-- add_index(:todos, [:user_id, :context_id])
   -> 0.0914s
-- add_index(:preferences, :user_id)
   -> 0.0076s
-- add_index(:projects, :user_id)
   -> 0.0156s
-- add_index(:contexts, :user_id)
   -> 0.0174s
== AddIndices: migrated (0.3883s) =============================================

== IndexOnUserLogin: migrating ================================================
-- add_index(:users, :login)
   -> 0.0121s
== IndexOnUserLogin: migrated (0.0123s) =======================================

== AddFindByNameIndices: migrating ============================================
-- add_index(:projects, [:user_id, :name])
   -> 0.0161s
-- add_index(:contexts, [:user_id, :name])
   -> 0.0126s
== AddFindByNameIndices: migrated (0.0290s) ===================================

== AddTagSupport: migrating ===================================================
-- create_table(:taggings)
   -> 0.0062s
-- create_table(:tags)
   -> 0.0060s
-- add_index(:tags, :name)
   -> 0.0113s
-- add_index(:taggings, [:tag_id, :taggable_id, :taggable_type])
   -> 0.0093s
== AddTagSupport: migrated (0.0335s) ==========================================

== AddProjectTimestamps: migrating ============================================
-- add_column(:projects, :created_at, :timestamp)
   -> 0.0288s
-- add_column(:projects, :updated_at, :timestamp)
   -> 0.0150s
== AddProjectTimestamps: migrated (0.0440s) ===================================

== AddContextTimestamps: migrating ============================================
-- add_column(:contexts, :created_at, :timestamp)
   -> 0.0156s
-- add_column(:contexts, :updated_at, :timestamp)
   -> 0.0194s
== AddContextTimestamps: migrated (0.0354s) ===================================

== AddShowProjectOnTodoDonePreference: migrating ==============================
-- add_column(:preferences, :show_project_on_todo_done, :boolean, 
{:null=>false, :default=>false})
   -> 0.0087s
== AddShowProjectOnTodoDonePreference: migrated (0.0088s) =====================

== AddTitleDateFormatPreference: migrating ====================================
-- add_column(:preferences, :title_date_format, :string, {:null=>false, 
:limit=>255, :default=>"%A, %d %B %Y"})
   -> 0.0170s
== AddTitleDateFormatPreference: migrated (0.0174s) ===========================

== SetNilTimestamps: migrating ================================================
== SetNilTimestamps: migrated (0.1872s) =======================================

== AddDefaultContextToProject: migrating ======================================
-- add_column(:projects, :default_context_id, :integer)
   -> 0.0096s
== AddDefaultContextToProject: migrated (0.0098s) =============================

== AddMobileTodosPerPagePreference: migrating =================================
-- add_column(:preferences, :mobile_todos_per_page, :integer, {:null=>false, 
:default=>6})
   -> 0.0082s
== AddMobileTodosPerPagePreference: migrated (0.0083s) ========================

== AddRememberMeToUser: migrating =============================================
-- rename_column(:users, "password", "crypted_password")
   -> 0.0128s
-- add_column(:users, :remember_token, :string)
   -> 0.0117s
-- add_column(:users, :remember_token_expires_at, :datetime)
   -> 0.0088s
== AddRememberMeToUser: migrated (0.0339s) ====================================

== RenameWordToToken: migrating ===============================================
-- rename_column(:users, :word, :token)
   -> 0.0109s
== RenameWordToToken: migrated (0.0111s) ======================================

== UpdateOpenIdUrls: migrating ================================================
--  -> 
--  -> 
--  -> 
== UpdateOpenIdUrls: migrated (0.0089s) =======================================

== AddProjectCompletedAtColumn: migrating =====================================
-- add_column(:projects, :completed_at, :datetime)
   -> 0.0116s
== AddProjectCompletedAtColumn: migrated (0.0812s) ============================

[EMAIL PROTECTED]:/var/www/trackstrunk$ 


_______________________________________________
Tracks-discuss mailing list
[email protected]
http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss

Reply via email to