Displaying 20 results from an estimated 40000 matches similar to: "Rake task like "rake cache_digests:dependencies" for Rails 4?"
2013 Feb 28
0
Rake tasks db:test:prepare cannot be executed in the same task of db:reset or db:migrate
Hey all,
I''m trying to create a task that prepare the environment to start
programming.
To do so, I created a task like this *task :setup_env => [''db:reset'',
''db:migrate'', ''db:test:prepare'']* and observed that after execute *
rake setup_env*, it never execute db:test:prepare properly. In order to get
the schema cloned to test db,
2013 Nov 17
0
Retrieve host info in Rake task ?
Hi,
I''m writing a rake task for a standard Rails 3.x project.
I''d like to retrieve a info from rails about project''s hostname and if
possible also about protocol (http, https) and default port.
I can access these values from a controller f.E. but what about rake
task ?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed
2013 Feb 22
0
Rake task that allows you generate static error pages in public folder from partial.
https://gist.github.com/907th/5013075
Rake task that allows you generate static error pages in public folder from
layouts/exception partial.
Usage: rake exceptions:compile_error_pages RAILS_ENV=production.
Dependencies: colored gem for pretty output
(https://rubygems.org/gems/colored), rails 3.2 (tested only for that
version).
--
You received this message because you are subscribed to the
2012 Dec 04
0
Empty test suite is run after every rake task
When I run rake db:migrate or rake -T I get these lines at the end:
Finished in 0.000276 seconds.
0 tests, 0 assertions, 0 failures, 0 errors
My Gemfile is:
source ''http://rubygems.org''
gem ''rack''
gem ''rails'', ''3.0.9''
gem "acl9", ''0.12.0''
gem "fastercsv"#, :version =>
2006 Mar 21
0
is "Task" a reserved class name in Edge Rails? (it clashes with Rake''s Task)
Ok, so I''ll bet that lots of people would naturally have a DB table called
"Tasks" and a model called Task, and this works fine in Rails 1.0. BUT,
using Edge Rails things turn strange when you start visiting your Task pages
because it thinks that you''re trying to use Rake (which also has a Task
class). Is there any way around this?
-Greg
Greg Edwards
CTO,
2007 Jul 12
1
Rails database backup & restore plugin or rake task
Hi,
Searching in internet finds me mysql specific things and outdated rake
tasks. I want a portable one. So using postgresql database, I want to
dump my db data into a file. Then I want to load the file into mysql
database.
Any one know where I can find one?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2013 Sep 18
0
rake problem for dashboard
I''ve setup a new puppet master and I''m having trouble with running
dashboard rake commands. Any advise on why I may be getting this error
would be appreciated!
Thanks, Thomas
sh-4.1# pwd
/usr/share/puppet-dashboard
sh-4.1# sudo -u puppet-dashboard rake RAILS_ENV=production jobs:work
/usr/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:247:in `to_specs'': Could
not
2013 Feb 20
1
remove node parameters with dashboard rake api?
Is there a rake task for removing node parameters from the dashboard? The
online dashboard manual is silent on the parameters related to rake tasks
altogether.
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
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''
2009 Mar 06
2
rake test:functionals -> Task not supported by ''
I have a Rails project in which I''ve been using "rake test" tasks with
great success. At some point (there were a few changes in the interim),
rake started aborting test tasks. Here is the dialog:
===
$ rake test:functionals
(in /Users/fritza/myproject)
rake aborted!
Task not supported by ''''
(See full trace by running task with --trace)
===
The separate
2013 May 18
3
You have already activated rake 10.0.4, but your Gemfile requires rake 10.0.3.
I''m careful to create separate gemsets for each project, so when I run
bundle install, it only installs gems for that gemset. This way gems
dont creep into the wrong projects. Now I just pulled a project from
github. I made sure I was in the correct gemset, and then I run bundle
install and it works fine. but then when I use rake to create the
database "rake db:create". I get
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
2012 Oct 05
2
heroku rake db:drop error PG::Error: FATAL: permission denied for database "postgres"
How to empty DB in heroku<http://stackoverflow.com/questions/4820549/how-to-empty-db-in-heroku>
I have a Postgres database on Heroku. It is one of the free beta ones.
Locally, when testing, I often run rake db:drop && rake db:create && rake
db:migrate as a way to reset the database.
However, when I try to run this on Heroku, I get the error:\[code\]Couldn''t
drop
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.
2013 Aug 29
0
[PR 11148] Extracting out rake stats into a gem (code_metrics)
Just joined the group. Please let me know if I am not posting this
appropriately.
I think the PR is done, just needs ok to merge and if it should be
back-ported.
I rebase if off our master periodically to ensure a clean merge.
Re: https://github.com/rails/rails/pull/11148
Whereas
- The code_statistics code in rails provides useful functionality
- It does not depend on rails in any
2006 Nov 24
0
PostgreSQL search_path and db:structure:dump rake task
Hello!
I''ve submitted a patch to work around a problem when multiple schemas
are included in the search_path in database.yml for PostgreSQL
databases. (Long story short: the pg_dump --schema flag only accepts
a single schema.)
http://dev.rubyonrails.org/ticket/6665
While I''ve tested the regex pattern used to check for multiple
schemas, I''m unsure of how to
2007 Dec 26
2
How to set environment when calling rake task inside another
This is what I have inside a rake task. In this rake task I need to call
another rake task called email:send_messages. However I need to pass the
RAILS_ENV as ''staging''.
Rake::Task["rake:email:send_messages"].invoke
I tried a lot of variations but none of them work.
Rake::Task["rake:email:send_messages"].invoke RAILS_ENV=staging
2006 Oct 22
0
[705] trunk/wxruby2/rake/rakedocs.rb: Add rake task to publish docs to wxruby website (Alex Fenton)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2013 Jun 27
2
[HELP] RoR Fedena App Installation: Rake Gem
I''m really a newbie with RoR.
But I need to deploy this app as soon as possible.
RoR App: Fedena
RoR Ver: 1.8.7
When I type any rake commands I always encounter this problem:
rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex
Locally, I did find the solution for this problem by downgrading my Rake
Gem version from 0.9.2 to 0.8.7.. The problem is installing it on
2007 Dec 07
4
mrblog rake task fails
Hi all,
I''m trying to run the mrblog sample application but somehow the rake
task fails:
--
Los-Angeles:~/Projects/mrblog Ulf$ rake db:schema:load --trace
(in /Users/Ulf/Projects/mrblog)
rake aborted!
Don''t know how to build task ''db:schema:load''
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1472:in `[]''