- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我按照以下说明在使用Rails 3.2.3的Ubuntu 10.04.4上将Thin Server作为服务安装和配置:
http://articles.slicehost.com/2008/5/6/ubuntu-hardy-thin-web-server-for-ruby
瘦服务器可以使用“thin start”从应用程序根目录正常运行
但是,当我尝试使用以下任何命令运行服务时:
service thin start
sudo service thin start
/etc/init.d/thin start
sudo /etc/init.d/thin start
/home/myuser/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find thin (>= 0) amongst [bigdecimal-1.1.0, io-console-0.3, json-1.5.4, minitest-2.5.1, rake-0.9.2.2, rdoc-3.9.4] (Gem::LoadError)
from /home/myuser/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec'
from /home/myuser/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems.rb:1210:in `gem'
from /home/myuser/.rvm/gems/ruby-1.9.3-p125/bin/thin:18:in `<main>'
home/myuser/.rvm/gems/ruby-1.9.3-p125/bin/thin
最佳答案
似乎每个启 Action 业都加载了自己的shell。因此,在尝试开始精简之前,请尝试加载rvm
:
#! /bin/sh
# Load RVM into a shell session *as a function*
if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then
# First try to load from a user install
source "$HOME/.rvm/scripts/rvm"
elif [[ -s "/usr/local/rvm/scripts/rvm" ]] ; then
# Then try to load from a root install
source "/usr/local/rvm/scripts/rvm"
else
printf "ERROR: An RVM installation was not found.\n"
fi
rvm use 1.9.3
cd /path/to/your/application/code
bundle exec thin -d
/etc/init.d/thin_service
中并运行
$ sudo update-rc.d thin_service defaults
sudo start thin_service
和
sudo stop start_thin
而不是重新启动来进行测试。如果仍然无法解决问题,请尝试使用railsgems-bundler和rvm包装器。另外,请阅读
rvm's Deployment Best Practices
关于ruby-on-rails - 无法将瘦服务器作为服务启动,RubyGems : Could not find thin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10390040/
在干净的 Debian 系统上——没有安装 Rubygems——我想安装一个带有 Puppet 的 Rubygem 包(版本 2.7.13)。所以包有“gem”作为包提供者。 到目前为止,这是我的 l
您好,我希望得到一些安装 rubygems 的帮助。这就是我尝试时发生的情况。 “ruby-full”已经安装。我该如何解决?这是什么问题? $ sudo apt-get install ruby
我两天前刚刚上传了一个 RubyGem。它的作用不大,但它是部分 Facebook Graph API 的包装器。今天怀着好奇,查看了一下gem的下载量,居然在300左右,高得惊人。我想知道机器人是否
我遇到了与 Gem::LoadError: Could not find rubygems-bundler (>= 0) amongst 类似的问题我假设那里提到的错误已经修复。 我正在使用 bund
我公司的公司代理似乎干扰了 https rubygems.org 的连接(但不是 http 连接),当我尝试从默认 gem 源 https://rubygems.org 安装 gem 时导致失败.出于
$ bundle The source :rubygems is deprecated because HTTP requests are insecure. Please change your s
$ bundle The source :rubygems is deprecated because HTTP requests are insecure. Please change your s
警告:找不到 RubyGems 1.2+ 索引: RubyGems 将恢复到降低性能的遗留索引。 如果有人能帮我解决这个问题,我会给他们 50.00 美元 我用尽了谷歌,重新安装了所有东西。 我只想做
我从 Maven 收到一条缺少 gem 的消息: http://production.s3.rubygems.org/gems/rb-inotify-0.9.6.gem http://s3.amazo
我刚刚安装了一个带有 Ubuntu 10.4 和 Ruby1.9.1 的新虚拟机 (VirtualBox)。我已经获得了 RUbyGems1.9.1 的软件包,但是当我执行 gem --version
遇到与this post相同的问题,除了不幸的是我不认为解决方案是一样的。 我收到此错误消息: Rails requires RubyGems >= 0.9.4. Please install Rub
我正在尝试编译我的第一个 gem 并将其推送到 rubygems.org。它不断抛出错误,说我无法推送到 https://rubygems.org : gem build simplesms.ge
我正在尝试编译我的第一个 gem 并将其推送到 rubygems.org。它不断抛出错误,说我无法推送到 https://rubygems.org : gem build simplesms.ge
关于如何更新 rubygems 有点困惑。过程不断变化(或者至少我从互联网上得到了相互矛盾的信息)。 $ gem outdated rubygems-update (1.8.10 < 1.8.11
运行 bundle 安装时,我收到以下消息: Rubygems 2.0.14 is not threadsafe, so your gems will be installed one at a ti
我收到错误:警告:您正在将 Rubygems 2.0.3 与 Spring 一起使用。尝试运行 Rails 控制台时至少升级到 Rubygems 2.1.0。 我该如何更新它? 最佳答案 尝试运行 g
我试图在 XP 上构建 capybara-webkit。我关注了this操作说明。它说要进行捆绑安装: $ cd ruby193\capybara-webkit $ bundle install
我正在运行 rails 2.3.5 版和 rubygems 1.3.6 版,当我编写脚本/服务器时出现此错误 Rails 要求 RubyGems >= 1.3.2。请安装 RubyGems 并重试
我刚刚开始学习 Ruby on Rails,并且正在将它安装到 OSX El Capitan 上。 我已经使用 rbenv 完全安装了 Ruby on Rails。我能够通过运行来设置我的第一个应用程
我正在建立自己的 Github 页面。我想在推送到远程仓库之前在本地机器上测试站点。我按照 https://help.github.com/en/github/working-with-github-
我是一名优秀的程序员,十分优秀!