rake

    0热度

    1回答

    我是ruby的新手,我正在编写一个非常基本的Rakefile。它包含一个类Installer,有一个方法shell它调用sh这样的: class Installer def shell(command) sh command end end 当我运行它时,它抛出 NoMethodError: undefined method `sh' for #<Install

    0热度

    1回答

    RVM在我的系统中安装了错误。 我使用的是rbenv,这导致我的Ruby on Rails应用程序出现问题。 I uninstalled successfully rvm,我的应用程序之一,我需要运行rake db:create:all建立PSQL数据库,我收到以下错误: /usr/bin/env: ‘ruby_executable_hooks’: Not a directory 文件/usr

    0热度

    1回答

    重新启动nginx后,我得到了这个错误。 找不到耙12.1.0任何来源 (捆扎机:: GemNotFound) 我试图捆绑安装,重新安装耙其中宝石安装的文件更改并删除gemlock文件,但似乎没有工作。

    0热度

    1回答

    我想用耙测试导轨应用中的特定文件夹。 我已经做了parallel.rake文件lib/tasks其中包含: require 'rake/testtask' namespace :test do Rails::TestTask.new(fixtures: 'test:prepare') do |t| t.pattern = 'test/fixtures/*_test.rb'

    0热度

    2回答

    我正在编写一个Thor脚本来运行来自其他工具的一些测试,即运行shell命令。我希望命令中的stdout和stderr能够持续流入我的控制台。 首先尝试使用反引号,但stdout/stderr自然不会被打印出来(而是在返回值中捕获stdout)。 desc "mytask", "my description" def mytask `run-my-tests.sh` end 我的

    0热度

    1回答

    我试图在向我的Rails 5应用程序添加狂欢宝石之后预编译我的资产。在我添加它之前它运行正常,但现在我无法将我的资源预先编译。 application.scss @import "bootstrap-sprockets"; @import "bootstrap"; @import "bootsy"; @import "theme"; @import "dropzone"; @import

    2热度

    1回答

    我有一个Rails项目并使用RSpec进行测试。最近,我在spec_helper.rb添加了这个: config.before(:suite) do Rails.application.load_tasks end 如果我bundle exec rspec在本地运行测试,一切都很好。但是,当我试图做同样的事情上特拉维斯CI,命令与崩溃: TypeError: superclass

    0热度

    1回答

    Pathing的问题 我有以下的Rakefile ... namespace :dev do desc "Execute my-bash-script." task :done do sh "./bin/my-bash-script.sh" # <-- Error on this line end end 其中我成功地执行我的Mac上用rake de

    1热度

    1回答

    我一直在用Ruby 1.9.3运行Rails 3.2一段时间。最近我添加了Rails 5.1和Ruby 2.4。 我用rvm来安装Ruby2.4。 今天,我有机会cd到我的老项目之一,并运行rake db:migrate,我得到了以下信息: Gem::LoadError: You have already activated rake 12.0.0, but your Gemfile requir

    0热度

    2回答

    大家好,我试图用一个命令 - rake db:migrate 但我在终端得到这个反馈 - rake aborted! Mysql2::Error: Access denied for user 'root'@'localhost' (using password: NO) 我期待当我使用命令时有东西要求输入密码,比如 rake db:migrate -p 但是这不适用于我我尝试过各种