部署 Mac 基础上安装 thin 没有配置文件

woody1983 · 2013年09月20日 · 最后由 woody1983 回复于 2013年09月20日 · 2806 次阅读
xjmatoMacBook-Air:sinatra-site xj$ thin start
No adapter found for /Users/xj/Documents/blog_github/sinatra-site

看了其他的文章 Linux 下安装后会有/etc/thin 的安装目录 我这边一运行就报错说找不到配置文件 直接启动 sinatra 是可以运行 log 显示用的是 thin 但就是我的其他机器不能访问 我本机用 ip 也不行 只能用 127.0.0.1 这样的本地地址

xjmatoMacBook-Air:sinatra-site xj$ ruby web.rb 
== Sinatra/1.4.3 has taken the stage on 4567 for development with backup from Thin
>> Thin web server (v1.5.1 codename Straight Razor)
>> Maximum connections set to 1024
>> Listening on localhost:4567, CTRL+C to stop

See this issue to understand why and then follow this solution.

Use Google, always!

Gemfile 有没加 gem 'thin'

#1 楼 @nightire 感谢 我现在两台笔记本 可以一个 Coding 一个即时 reiview 效果了~ 看来提问是一门艺术 我要补补了 谢谢

需要 登录 后方可回复, 如果你还没有账号请 注册新账号