Displaying 20 results from an estimated 20000 matches similar to: "rake only works once from rails"
2009 Apr 24
1
Can rails environments be loaded only once and then execute rake tasks without loading it again and again?
Hi there guys,
I have a daemon that executes a rake task periodically in a loop in
the backend. And every time it runs the rake task, rails environment
is reloaded. Is there a way that the rails environment is loaded only
once before the loop and the following rake task will not load it
again and again?
Thank you in advance.
2006 Mar 31
1
rake doc:rails fails with edge rails
Hi,
I''m sure I''m doing something stupid, but I can''t figure this one out. I
want the edge rails docs (I''m using svn:externals for vendor/rails to
get edge rails). Running ruby 1.8.4, and edge rails. Tried on linux
and OS X.
''rake doc:app'' and ''rake doc:plugins'' works fine, but when I run ''rake
2010 Feb 25
0
Rails problems running rake and other tasks - undefined method `action_controller'
I suddenly have a major problem in all my Rails 3 apps:
$ rake db:migrate --trace
rake aborted!
Don''t know how to build task ''db:migrate''
/Users/kristianconsult/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/
rake.rb:1728:in `[]''
/Users/kristianconsult/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/
rake.rb:2050:in `invoke_task''
2006 Apr 11
2
''rake rails:update'' Error - can''t upgrade to 1.1.1
''rake rails:update'' is causing the below error for me when trying to
upgrade my application. I''ve scowered Google and didn''t find much, has
anyone else had this problem and solved it?
C:\@cs\phase2>rake rails:update --trace
(in C:/@cs/phase2)
rake aborted!
Don''t know how to build task ''rails:update''
2009 Nov 07
0
wrong argument type Mysql (expected Struct) running rake with Ruby 1.9 / Rails 2.3.3
I''m use Ruby 1.9 via rvm and Rails 2.3.3. I''m on OS X 10.5 and I have
the mysql 2.8.1 gem installed. When I run rake on my rails app, I get
the error "wrong argument type Mysql (expected Struct)". I can run
the app fine with script/server and script/console fine. Is anyone
else having this problem or know what might cause this problem?
Here''s the stack
2006 Mar 01
2
Rake error on edge rails
I updated my "edge rails" this morning, ran ''rake'', and got:
rake aborted!
undefined method `namespace'' for main:Object
./rakefile:10
To verify, I created a new project, ran ''rake'' and didn''t get the
error. Then I ran ''rake freeze_edge'', re-ran ''rake'' and got the same
error. Is anyone else
2011 Apr 27
1
Rake 0.8.7 issue on Rails 3, ruby 1.9.2 and Windows 7
Hi folks,
I´ve posted some days ago and receive your support. First i wish to
thank you.
I have this environment (Ruby 1.9.2, Rails 3.0.7, rake 0.8.7 ans MySQL
5.5.9 on Windows 7 32 bits) and another running on Ubuntu 9.10 (the
versions of Ruby, rails, rake and MySQL are the same).
So, i am able to do every rake task i call when i´m using ubuntu, even
rake db:create:all or rake db:migrate runs
2008 Jun 09
0
Error when executing "rake db:migrate" with frozen Rails 2.1.0 on Media Temple
I''m hoping someone might have some insight into this, because I don''t
quite know how to figure this one out. I''m running the command with
Capistrano''s deploy:migrate to my (mt) Media Temple (gs) Grid Server,
but I get the same error (from "rake aborted!" and on below) when I
run "rake db:migrate" directly on the server in the
2006 Mar 29
2
How to undo ''rake rails:update''?
How do I reverse this action?
rake freeze_edge
rake rails:update
Step 1: rake rails:unfreeze
Step 2: ??? (what is reverse of ''rake rails:update''?
--
Posted via http://www.ruby-forum.com/.
2011 Apr 08
3
Ruby on rails migration problem
Hello all,
I have created a migration add_details _to users ... ( city_id ,
profession )
and then migrated it..
when i use params[:user] to update the database by taking user inputs
from forms in views, it is not updating the database for these city_id
and profession... ( not changing from null )
if add validation for presence of city_id .. it is giving the error
"City id cant be
2009 Mar 21
0
Problem running Rdoc from Rake in Rails 2.3
People,
I''m getting an error from Rake I''d like to debug. Here is a
screendump:
Fri Mar 20 23:28 /b/tmp/myfc23 maco$ rake doc:plugins:rspec
(in /b/tmp/myfc23)
rdoc -o doc/plugins/rspec --title ''Rspec Plugin Documentation'' --line-
numbers --inline-source --charset utf-8 -T html vendor/plugins/rspec/
lib/autotest/discover.rb
major-snip
95% [107/112]
2007 Jan 20
0
Rails can't find my Rake Tasks
Hi,
I''ve added some rake tasks to my rails project but on my production
server, rails is not finding the tasks. On my dev box however, rails
finds them no problem. They are located in the lib/tasks folder in a
file ending in .rake. I do a rake -T and nothing shows up for it. There
are a lot of other tasks that show up though.
My production server is Redhat where as my dev is Windows
2010 May 25
1
rake rails:freeze:gems bug in rails 2.3.5?
Hi All,
Not sure if this is a bug or expected behavior.
I''ve pasted my log below, but basically the first time that I run
rake rails:freeze:gems, I get action* all unpacked into app/vendor/
rails.....the 2nd time I run it? I only get vendor/railties/*
Something I''ve done wrong?
Thanks,
Dale
---- log -----
~/cygwin/test$ rake rails:freeze:gems
(in C:/Documents and
2013 Jul 01
0
Rake task like "rake cache_digests:dependencies" for Rails 4?
The cache_digests gem has the "rake cache_digests:dependencies" task for
checking template dependencies.
Since Rails 4 includes this caching scheme by default, should it include a
similar rake task?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send
2010 Feb 19
1
First time rails install, help with gems/rake
Hello all,
I just did a first time ruby enterprise edition, installed some gems,
and now I''m trying to do a '' sudo ./rake gems:install'' and getting a:
rake aborted!
No Rakefile found
error. Firstly, what directory should I be doing this from?
--
View this message in context:
2006 Mar 29
2
Rake Migrations for Rails 1.1
Hi all. I keep having the following error when I invoke the rake
db:migrate command for Rails 1.1 (Ruby 1.8.2 -- Windows 2000)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
== Realtorex: migrating
=======================================================
-- create()
rake aborted!
undefined method `create'' for
2010 Aug 17
0
Installing selenium-on-rails - error on rake test
I''m following the instructions on installing Selenium on rails: "Run the
Rakefile in the plugin???s directory to run the tests in order to see that
everything works"
When I rake:
DKMac:selenium-on-rails DK$ rake test
I get the following error:
/Users/DK/.rvm/gems/ruby-1.8.7-p174/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:105:in
`const_missing'':
2008 Jun 24
1
Rails 'rake gems:install' error in windows
I am developing with rails at three platform
mac, windows, linux.
until Rails 2.1, we can describe gem dependencies in environment.rb.
( this one ~
http://ryandaigle.com/articles/2008/4/1/what-s-new-in-edge-rails-gem-dependencies
)
so I write environment.rb like below for using will_paginate
...
config.gem ''capistrano''
config.gem
2008 Dec 25
2
rake doc:rails -- fails.
rake doc:rails fails with:
Don''t know how to build task ''vendor/rails/railties/CHANGELOG''
How to fix?
Rails 2.2.2, Rake 0.8.3.
Thanks,
Ken
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this
2006 Aug 02
0
rake works but rake test:units fails, strange trace
Hi,
When I run rake, everything works fine but when I run rake test:units
I get an error apparently while it''s trying to create db tables
saying the table already exists. I ran rake with trace to see the
differences. It appears that rake test:units does db:schema:load
twice, maybe that is the problem? Anyone know why this might be?
Output of trace below
Rake
** Invoke default