Problems freezing rails

I've got a site at Dreamhost, and am trying to freeze rails, but am getting this error message:

[larchmont]$ rake rails:freeze:gems --trace (in /home/.input/cmills/fsilg.dreamhosters.com) rake aborted! Don't know how to build task 'rails:freeze:gems' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1634:in `' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1930:in `invoke_task' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run' /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31 /usr/bin/rake:19:in `load' /usr/bin/rake:19

I created a new test rails app on the same server and had no problem freezing rails. Any ideas out there?

Are you sure you're running this from your RAILS_ROOT directory? Looks like it can't find the rakefile.

Jeff

Jeff Cohen wrote:

Are you sure you're running this from your RAILS_ROOT directory? Looks like it can't find the rakefile.

Jeff

I'm running it in the correct directory, and the rakefile exists as this:

I've got a site at Dreamhost, and am trying to freeze rails, but am getting this error message:

is this app using an older version of rails where the task had a
different name ? (rake -T shows tasks)

Fred

Frederick Cheung wrote:

is this app using an older version of rails where the task had a different name ? (rake -T shows tasks)

Here is the output:

[larchmont]$ rails -v Rails 2.1.0 [larchmont]$ rake -T (in /home/.input/cmills/fsilg.dreamhosters.com) rake add_new_scripts # Add new scripts to the application script/ ... rake apidoc # Build the apidoc HTML Files rake appdoc # Build the appdoc HTML Files rake clear_logs # Clears all *.log files in log/ rake clobber_apidoc # Remove rdoc products rake clobber_appdoc # Remove rdoc products rake clobber_plugindoc # Remove plugin documentation rake clone_schema_to_test # Recreate the test database from the current... rake clone_structure_to_test # Recreate the test databases from the develo... rake create_sessions_table # Creates a sessions table for use with CGI::... rake db_schema_dump # Create a db/schema.rb file that can be port... rake db_schema_import # Import a schema.rb file into the database. rake db_structure_dump # Dump the database structure to a SQL file rake default # Run all the tests on a fresh test database rake deploy # Deploy application directories / Push the l... rake drop_sessions_table # Drop the sessions table rake freeze_edge # Lock this application to the Edge Rails (by... rake freeze_gems # Lock this application to the current gems (... rake load_fixtures # Load fixtures into the current environment'... rake migrate # Migrate the database according to the migra... rake plugindoc # Generate documation for all installed plugins rake prepare_test_database # Prepare the test database and load the schema rake purge_sessions_table # Drop and recreate the session table (much f... rake purge_test_database # Empty the test database rake reapidoc # Force a rebuild of the RDOC files rake reappdoc # Force a rebuild of the RDOC files rake recent # Run tests for recentprepare_test_database rake remote_exec # Execute a specific action using the release... rake rollback # Rollback to the release before the current ... rake show_deploy_tasks # Enumerate all available deployment tasks rake stats # Report code statistics (KLOCs, etc) from th... rake test_functional # Run tests for test_functionalprepare_test_d... rake test_plugins # Run tests for test_pluginsenvironment rake test_units # Run tests for test_unitsprepare_test_database rake unfreeze_rails # Unlock this application from freeze of gems... rake update_javascripts # Update your javascripts from your current r...

Frederick Cheung wrote:

is this app using an older version of rails where the task had a different name ? (rake -T shows tasks)

Here is the output:

You don't need my help to read through that list and find the freeze
task :slight_smile: Do just check it's not already frozen ( does vendor/rails exist?) -
those task names look pretty old - possibly before the whole setting
your version in environment.rb was added

Fred