- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 sidekiq upstart 工作,但在运行时 sudo service sidekiq restart
收到以下错误
There was an error while trying to load the gem 'yard'.
/home/ubuntu/.rvm/gems/ruby-2.2.1@myapp/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in `rescue in block (2 levels) in require'
/home/ubuntu/.rvm/gems/ruby-2.2.1@myapp/gems/bundler-1.11.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
/home/ubuntu/.rvm/gems/ruby-2.2.1@myapp/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each'
/home/ubuntu/.rvm/gems/ruby-2.2.1@myapp/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require'
/home/ubuntu/.rvm/gems/ruby-2.2.1@myapp/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each'
/home/ubuntu/.rvm/gems/ruby-2.2.1@myapp/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require'
/home/ubuntu/.rvm/gems/ruby-2.2.1@myapp/gems/bundler-1.11.2/lib/bundler.rb:99:in `require'
/home/ubuntu/myapp/config/application.rb:8:in `<top (required)>'
/home/ubuntu/.rvm/rubies/ruby-2.2.1/lib/ruby/gems/2.2.0/gems/sidekiq-3.2.5/lib/sidekiq/cli.rb:231:in `require'
/home/ubuntu/.rvm/rubies/ruby-2.2.1/lib/ruby/gems/2.2.0/gems/sidekiq-3.2.5/lib/sidekiq/cli.rb:231:in `boot_system'
/home/ubuntu/.rvm/rubies/ruby-2.2.1/lib/ruby/gems/2.2.0/gems/sidekiq-3.2.5/lib/sidekiq/cli.rb:49:in `run'
/home/ubuntu/.rvm/gems/ruby-2.2.1@global/gems/sidekiq-3.2.5/bin/sidekiq:8:in `<top (required)>'
/home/ubuntu/.rvm/rubies/ruby-2.2.1/bin/sidekiq:23:in `load'
/home/ubuntu/.rvm/rubies/ruby-2.2.1/bin/sidekiq:23:in `<main>'
/etc/init/sidekiq.conf
# /etc/init/sidekiq.conf - Sidekiq config
# This example config should work with Ubuntu 12.04+. It
# allows you to manage multiple Sidekiq instances with
# Upstart, Ubuntu's native service management tool.
#
# See workers.conf for how to manage all Sidekiq instances at once.
#
# Save this config as /etc/init/sidekiq.conf then manage sidekiq with:
# sudo start sidekiq index=0
# sudo stop sidekiq index=0
# sudo status sidekiq index=0
#
# Hack Upstart's reload command to 'quiet' Sidekiq:
#
# sudo reload sidekiq index=0
#
# or use the service command:
# sudo service sidekiq {start,stop,restart,status}
#
description "Sidekiq Background Worker"
# This script is not meant to start on bootup, workers.conf
# will start all sidekiq instances explicitly when it starts.
start on runlevel [2345]
stop on runlevel [06]
# change to match your deployment user
setuid ubuntu
setgid ubuntu
#respawn
#respawn limit 3 30
# TERM is sent by sidekiqctl when stopping sidekiq. Without declaring these as
# normal exit codes, it just respawns.
normal exit 0 TERM
# Older versions of Upstart might not support the reload command and need
# this commented out.
reload signal USR1
# Upstart waits 5 seconds by default to kill the a process. Increase timeout to
# give sidekiq process enough time to exit.
kill timeout 15
#instance $index
script
# this script runs in /bin/sh by default
# respawn as bash so we can source in rbenv
exec /bin/bash <<'EOT'
# Pick your poison :) Or none if you're using a system wide installed Ruby.
source /home/ubuntu/.bash_profile
source /home/ubuntu/.rvm/scripts/rvm
source /home/ubuntu/.bashrc
# Logs out to /var/log/upstart/sidekiq.log by default
cd /home/ubuntu/myapp/
exec bundle exec sidekiq -C config/sidekiq.yml -e production
EOT
end script
yard
但仍然得到同样的错误。
最佳答案
我遇到了问题,$HOME
变量不被认为是在 upstart 工作中定义的。所以~
登录 yard.rb
gem 文件没有扩展到实际路径。比我在 Upstart 中明确定义变量并使其工作。
关于ruby-on-rails - 尝试加载 gem 'yard' 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37524814/
我正在运行“yard server -g”,但它只为 axlsx 生成目录。 当我点击一个类(class)时,我得到: undefined method `new' for nil:NilClass.
本文整理了Java中org.apache.stanbol.entityhub.servicesapi.yard.Yard.remove()方法的一些代码示例,展示了Yard.remove()的具体用法
本文整理了Java中org.apache.stanbol.entityhub.servicesapi.yard.Yard.getName()方法的一些代码示例,展示了Yard.getName()的具体
本文整理了Java中org.apache.stanbol.entityhub.servicesapi.yard.Yard.update()方法的一些代码示例,展示了Yard.update()的具体用法
本文整理了Java中org.apache.stanbol.entityhub.servicesapi.yard.Yard.getQueryFactory()方法的一些代码示例,展示了Yard.getQ
本文整理了Java中org.apache.stanbol.entityhub.servicesapi.yard.Yard.find()方法的一些代码示例,展示了Yard.find()的具体用法。这些代
本文整理了Java中org.apache.stanbol.entityhub.servicesapi.yard.Yard.findRepresentation()方法的一些代码示例,展示了Yard.f
本文整理了Java中org.apache.stanbol.entityhub.servicesapi.yard.Yard.create()方法的一些代码示例,展示了Yard.create()的具体用法
本文整理了Java中org.apache.stanbol.entityhub.servicesapi.yard.Yard.getId()方法的一些代码示例,展示了Yard.getId()的具体用法。这
本文整理了Java中org.apache.stanbol.entityhub.servicesapi.yard.Yard.findReferences()方法的一些代码示例,展示了Yard.findR
本文整理了Java中org.apache.stanbol.entityhub.servicesapi.yard.Yard.isRepresentation()方法的一些代码示例,展示了Yard.isR
本文整理了Java中org.apache.stanbol.entityhub.servicesapi.yard.Yard.removeAll()方法的一些代码示例,展示了Yard.removeAll(
本文整理了Java中org.apache.stanbol.entityhub.servicesapi.yard.Yard.getRepresentation()方法的一些代码示例,展示了Yard.ge
本文整理了Java中org.apache.stanbol.entityhub.servicesapi.yard.Yard.getValueFactory()方法的一些代码示例,展示了Yard.getV
我正在开发一个 Ruby 编程教程,我想用 Yard 记录它。 .默认情况下,Yard 将模块/类中的所有方法按字母顺序排列。但是,由于教程中每个模块中的方法都是相互构建的,因此我希望按照我编写它们的
我想使用 Yard 从我的自述文件链接到另一个额外的文件。 例如,我有以下几行: ...关于如何贡献的详细说明 [此处](contributing.md) 我希望这个链接到我的文件 contribut
我使用 YARD 为 ruby 项目生成文档。该项目包含一个 README.md 文件,如下所示: # MyTool Welcome to your new gem! ... ##
是否有约定表明 YARD 样式文档中的参数仅用于其“真实性”状态,即您只想知道它是 false 还是 nil 还是真实的? 下面通常用什么代替 Truthy? # @param [String] na
我有一个看起来像这样的方法: def get_endpoint(params: {}) end 我希望这个方法的调用者能够传入一些可选参数。 我想编写 YARD 文档来支持这一点,如果我不使用关键字参
我想在 yard-genereted 文档中包含图像,但无法在任何地方找到如何执行此操作...有人知道如何执行此操作吗? 最佳答案 您可以只添加 标记到您的文档: # Blah-blah # #
我是一名优秀的程序员,十分优秀!