Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/60.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails RAILS:无法安装守护程序插件_Ruby On Rails_Daemon - Fatal编程技术网

Ruby on rails RAILS:无法安装守护程序插件

Ruby on rails RAILS:无法安装守护程序插件,ruby-on-rails,daemon,Ruby On Rails,Daemon,守护程序插件: 当我这样做的时候 rails plugin install git://github.com/dougal/daemon_generator.git 我得到这个输出: Usage: rails plugin new APP_PATH [options] Options: -r, [--ruby=PATH] # Path to the Ruby binary of your choice

守护程序插件:

当我这样做的时候

rails plugin install git://github.com/dougal/daemon_generator.git
我得到这个输出:

Usage:
  rails plugin new APP_PATH [options]

Options:
  -r, [--ruby=PATH]                                      # Path to the Ruby binary of your choice
                                                         # Default: /home/nicki/.rbenv/versions/2.2.2/bin/ruby
  -m, [--template=TEMPLATE]                              # Path to some plugin template (can be a filesystem path or URL)
      [--skip-gemfile], [--no-skip-gemfile]              # Don't create a Gemfile
  -B, [--skip-bundle], [--no-skip-bundle]                # Don't run bundle install
  -G, [--skip-git], [--no-skip-git]                      # Skip .gitignore file
      [--skip-keeps], [--no-skip-keeps]                  # Skip source control .keep files
  -O, [--skip-active-record], [--no-skip-active-record]  # Skip Active Record files
  -S, [--skip-sprockets], [--no-skip-sprockets]          # Skip Sprockets files
      [--skip-spring], [--no-skip-spring]                # Don't install Spring application preloader
  -d, [--database=DATABASE]                              # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)
                                                         # Default: sqlite3
  -j, [--javascript=JAVASCRIPT]                          # Preconfigure for selected JavaScript library
                                                         # Default: jquery
  -J, [--skip-javascript], [--no-skip-javascript]        # Skip JavaScript files
      [--dev], [--no-dev]                                # Setup the plugin with Gemfile pointing to your Rails checkout
      [--edge], [--no-edge]                              # Setup the plugin with Gemfile pointing to Rails repository
      [--skip-turbolinks], [--no-skip-turbolinks]        # Skip turbolinks gem
  -T, [--skip-test-unit], [--no-skip-test-unit]          # Skip Test::Unit files
      [--rc=RC]                                          # Path to file containing extra configuration options for rails command
      [--no-rc], [--no-no-rc]                            # Skip loading of extra configuration options from .railsrc file
      [--dummy-path=DUMMY_PATH]                          # Create dummy application at given path
                                                         # Default: test/dummy
      [--full], [--no-full]                              # Generate a rails engine with bundled Rails application for testing
      [--mountable], [--no-mountable]                    # Generate mountable isolated application
      [--skip-gemspec], [--no-skip-gemspec]              # Skip gemspec file
      [--skip-gemfile-entry], [--no-skip-gemfile-entry]  # If creating plugin in application's directory skip adding entry to Gemfile

Runtime options:
  -f, [--force]                    # Overwrite files that already exist
  -p, [--pretend], [--no-pretend]  # Run but do not make any changes
  -q, [--quiet], [--no-quiet]      # Suppress status output
  -s, [--skip], [--no-skip]        # Skip files that already exist

Rails options:
  -h, [--help], [--no-help]  # Show this help message and quit

Description:
    The 'rails plugin new' command creates a skeleton for developing any
    kind of Rails extension with ability to run tests using dummy Rails
    application.

Example:
    rails plugin new ~/Code/Ruby/blog

    This generates a skeletal Rails plugin in ~/Code/Ruby/blog.
    See the README in the newly created plugin to get going.
我不知道为什么会发生这种情况,我尝试在rails应用程序内部和外部执行此操作,但没有成功!还是一样。 我使用的是rails 4.2.3

我还试着做:

rails plugin new install git://github.com/dougal/daemon_generator.git
它创建了一些文件。 创造

然后我使用这个命令进行了测试

rails generate daemon test
我得到了这个错误:

Could not find generator 'daemon'. Maybe you meant 'job', 'mailer' or 'task'
Run `rails generate --help` for more options.
zsh: no such file or directory: ./script/generate
我无法为rails安装守护进程

当我这样做的时候:

./script/generate daemon testdaemon
我得到这个错误:

Could not find generator 'daemon'. Maybe you meant 'job', 'mailer' or 'task'
Run `rails generate --help` for more options.
zsh: no such file or directory: ./script/generate

即使我有脚本文件夹。

rails的插件已经不存在了。为Rails2(或3)编写的任何东西都不可能与4或即将发布的版本5一起使用


您可以尝试将代码签入lib/并从config/应用程序中获取文件。

上一次提交是在>5年前,问题表明它对rails 3.x不起作用,大多数人说他们只是安装gem,然后直接使用它,我已经将gem放在gem文件中了。。不确定是什么问题,我也手动安装了sudo gem安装守护程序,但仍然没有luckhey。你能告诉我守护程序和sidekiq之间的区别吗?如果我使用sidekiq,我需要安装守护程序吗?只需使用sidekiq,请参阅此处的所有注释:或许多其他相关问题!