Displaying 20 results from an estimated 60000 matches similar to: "Retrieve host info in Rake task ?"
2013 Aug 29
5
Problem when using bundle exec rake with Launchd
Dear all,
I am developing a web harvesting server which requires regularly
website parsing. Since I use Mac 10.8 as my development environment, I
try to use Launchd to routinely wake up my parser. My parser was a bash
script which has only two lines:
1. cd $HOME/ProjectFolder
2. bundle exec rake dailyTask:dataParse
When directly execute the script under Terminal, there is no
problem.
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 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
2013 Nov 26
2
'$ rake db:create' don't work!
Hey guys,
I''m new to learning RoR and I try to do a database with mysql and I
have a problem.
First I create a a folder in my desktop and after with command in the
terminal on Mac Os Mavericks I create a project:
rails new vota_prato -d mysql
after I will try to create a database with this command:
$ rake db:create
and I have this error:
MacBook-Pro-de-Romenig:vota_prato romenig$ rake
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 =>
2013 May 14
4
rake precompile:assets throwing error
While running rake precompile:assets i''m getting the following error
This is the error message:
rake assets:precompile:all RAILS_ENV=production
rake aborted!
undefined local variable or method `establish_connection'' for
ActiveRecord::Base:Class
Please help
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2013 May 07
4
Rake db:migrate
Hello,
I''m trying to use command rake db:migrate, but in MySQL I continuous get
an empty set and I do know why.
#/db/seeds.rb
User.create(username: "lorenz", password: "mypass", admin: true)
When I run:
rake db:seed RAILS_ENV=development --trace
I received:
** Invoke db:seed (first_time)
** Execute db:seed
** Invoke db:abort_if_pending_migrations (first_time)
**
2013 Nov 20
0
Railties-4.0.1 - what happened to rake tmp:clear
MRI-2.0.0p247
Railties-4.0.1
We have a standalone Rails-3.2.15 based application that we are upgrading
to 4.0.1. It uses only the following components of Rails-4.0.1:
* actionmailer (4.0.1)
* actionpack (4.0.1)
* activemodel (4.0.1)
* activerecord (4.0.1)
* activesupport (4.0.1)
* arel (4.0.1)
* railties (4.0.1)
Bundler has a path setting which is:
path
Set for your local app
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
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
2013 Jun 29
0
rake db:create giving undefined method `' for nil:NilClass
My ruby version is 1.8.7
I have installed mysql-essential-5.0.90-win32
and using Fedena 2.3.5
List of all gems installed:*
columnize (0.3.6)
declarative_authorization (0.5.1)
fattr (2.2.1)
ffi (1.9.0)
gem_plugin (0.2.3)
highline (1.6.19)
i18n (0.4.2)
metaclass (0.0.1)
mime-types (1.23)
mocha (0.14.0)
mongrel (1.1.5)
mysql (2.8.1)
net-ping (1.6.0)
prawn (0.6.3)
prawn-core (0.6.3)
prawn-format
2013 May 23
1
rake assets:precompile issue with JS and stylesheets files with similar name
Hi,
I''ve got following two files with same names under javascripts and
stylesheets directories as:
- app/assets/javascripts/test_vendor.js
- app/assets/stylesheets/test_vendor.scss
Essentially a JS and an stylesheet files with same name.
--------------------------------------------------------------
I want these files to be precompiled and served from public directory.
Thus I
2013 May 22
2
Is command line Rails also so slow on Linuxes as it is on Windows?
There is a lot of questions on Stackoverflow about how Rails is slow in
command line on Windows machines. I use Windows and know that it is
true. All Rake tasks, all rails commands are very slow. Especially
testing is slow. I can''t test my code as I want because of it.
But some people in their answers say that command line Rails is slow
only on Windows. On Linuxes it is ok. But before I
2013 Sep 02
1
Problem with Filling Tables.
I have an application that has models for beer styles.
Every beer style will have a name and description. It will also contain
a list of beer models.
Every beer model will contain a name.
I want my application to fill in the list of styles with some default
data.
#Beer migration file:
class CreateBeers < ActiveRecord::Migration
def change
create_table :beers do |t|
t.string
2013 Nov 22
2
Cancan Rspec load_and_authorize_resource
Hello!
While running bundle exec rake, I receive following error (see in
attached file)
However, my tests are steel passing with command rspec spec/controllers/
Some info:
ads_controller.rb:
class AdsController < ApplicationController
load_and_authorize_resource except: :create
end
ads_controller_spec.rb:
require ''spec_helper''
describe AdsController do
render_views
2013 May 25
1
Mysterious Application Error on Heroku
I converted my app to rails 4. My test suite is green and it runs great
locally. I then deploy to Heroku and it crashed with no information at
all.
It just says "Application Error. An error occurred in the application
and your page could not be served"
Heroku logs don''t give any info either:
-------------------------------------------------------------
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
2013 Jan 03
1
Error with rake command
Getting error with rake db:migrate command:
ERROR: "rake/rdoctask" is obsolete and no longer supported.Use Rdoc/task
(available in RDoc 2.4.2+) instead.
Help me please
--
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 group, send email to
2013 Oct 29
3
rake db:migrate debacle
Hi there - I''m a ruby newbie and am stuck on the Getting Started with Rails
app. See output below. Problem arose when I ran the rake db:migrate
command. I also tried the ''rake db:migrate RAILS_ENV=development'' command
which may be obvious. Any ideas on how to fix this?
Many thanks!!
$ ruby -v
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin10.8.0]
2013 Feb 06
5
rake db:migrate_plugins RAILS_ENV=production fails with "no such file to load -- initializer"
I''m running Redmine on Ruby, and attempting to load a new plugin. When I
attempt to run the command:
rake db:migrate_plugins RAILS_ENV=production
It fails with this error:
rake aborted!
no such file to load -- initializer
/var/www/redmine/config/boot.rb:65:in `require''
/var/www/redmine/config/boot.rb:65:in `load_initializer''
/var/www/redmine/config/boot.rb:43:in