问题标签 [rack-pow]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ruby-on-rails - Pow 服务器突然停止工作
正如标题所说,Pow 今天刚刚停止工作。直接访问 app.dev 或 IP 地址时,我只是得到“糟糕!Google Chrome 无法连接到 app.dev”。
curl: (7) 无法连接到主机
细节
MacOS 10.8 /Users/iMac/.rvm/rubies/ruby-1.9.3-p448/bin/ruby
粉末配置
bin /Users/iMac/Library/Application Support/Pow/Versions/0.4.1/bin/pow dstPort 88 httpPort 20559 dnsPort 20560 超时 900 个工作人员 2 个域 dev extDomains hostRoot /Users/iMac/Library/Application Support/Pow/Hosts logRoot /Users/iMac/Library/Logs/Pow rvmPath /Users/iMac/.rvm/scripts/rvm
粉末状态
pid 3005 版本 0.4.1 requestCount 5
战俘日志
不显示任何最近的活动。
到目前为止我尝试过的
- 重新启动
- 重新启动/重新安装 pow
- 尝试这个bash 脚本
- 在 chrome://flags 中禁用 chrome 自动 DNS 功能
- 尝试使用 Safari 和 Firefox
我唯一能想到的是最近的 AirPort 更新。
任何帮助是极大的赞赏!
webserver - 带有目录列表的 Pow(网络服务器)
有没有办法用 Pow 进行目录列表?
由于对 Apache 的 GUI 访问在 OS X 上有点过时。我正在寻找一个非常简单的 Web 服务器设置,我可以在其中添加随机目录并提供可能没有索引文件的静态内容,而麻烦和设置最少。
ruby-on-rails - 项目升级后 Pow 不会更改 ruby 版本
我在我的 rails 项目中使用 Pow 和 powify gem。
现在我尝试升级我的 ruby 版本(从 1.9.3 到 2.0.0,我使用 RVM)
rails s
当我切换 ruby 版本时,安装所有 gem 依赖项,我通过运行和访问确保应用程序正常工作localhost:3000
http://my_app.dev
以前我通过访问pow来浏览我的应用程序。升级后,由于错误,此 url 不起作用Bundler::RubyVersionMismatch: Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0
我尝试了什么:
- 重新创建 pow 应用程序
- 重启 pow 服务器
- 更新 pow 服务器
- 杀死战俘服务器
- 谷歌这个错误:)
这个错误仍然存在。顺便说一句,我有另一个 Rails 应用程序,它最初使用 ruby 2.0 并且可以与 pow 一起使用。
ruby-on-rails - POW/Rails 错误:启动 applicationBundler::GemNotFound 时出错:在任何源中都找不到 minitest-4.7.5
我只需要删除 RVM 并重新安装,然后安装 Ruby 2.0.0
我可以从项目中的命令行运行 rails 控制台,但无法将其加载到浏览器中。
我在这里阅读了一些关于 .bash_profile 和 .bashrc 的答案,但我的 ~ 文件夹中都不存在。我尝试弄乱 .bashrc 文件,但没有任何帮助。
在我的 .bashrc 中:
rvm列表:
导轨-v
现在,当我尝试启动我的应用程序时,我看到了这个:
Bundler::GemNotFound:在任何源 /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/spec_set.rb 中找不到 minitest-4.7.5 :92:在
block in materialize' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in
地图中!/usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:inmaterialize' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in
specs' /usr/local/rvm/gems/ruby-2.0 .0-p247/gems/bundler-1.3.5/lib/bundler/definition.rb:159:inspecs_for' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/definition.rb:148:in
requested_specs' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5 /lib/bundler/environment.rb:18:inrequested_specs' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/runtime.rb:13:in
setup' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler.rb:120:insetup' /usr/local/rvm/gems/ruby-2.0.0-p247/gems/bundler-1.3.5/lib/bundler/setup.rb:17:in
'/ usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:116:inrequire' /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:116:in
require' ~/Sites/projectname/config/boot.rb:4:in
在需要' /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:122:in'/usr/local/rvm/中救援 rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:inrequire' /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in
require' ~/Sites/projectname/config/application.rb:1:in<top (required)>' /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in
require' /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:inrequire' ~/Sites/projectname/config/environment.rb:2:in
'/usr/local/rvm/rubies/ruby- 2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:inrequire' /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:51:in
require' ~/Sites/projectname/config.ru:3:inblock in <main>' ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/builder.rb:4:in
instance_eval' ~/Library/Application Support /Pow/Versions/0.4.1/node_modules/nack/lib/nack/builder.rb:4:ininitialize' ~/Sites/projectname/config.ru:1:in
新的'~/Sites/projectname/config.ru:1:in<main>' ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:50:in
eval'~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:50:inload_config' ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:43:in
initialize'~ /Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:13:innew' ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/lib/nack/server.rb:13:in
run' ~/Library/Application Support/Pow/Versions/0.4.1/node_modules/nack/ bin/nack_worker:4:in `'
rvm信息:
捆:
ruby-on-rails - 用于 RoR 的 ubuntu 机器上的 prax
有没有人成功安装和配置'prax' https://github.com/ysbaddaden/prax ?我试过在多台电脑上配置它,但没有成功。
有 pow 但它仅适用于 OSX。如果有其他选择,请分享。
ruby-on-rails - 带有 rbenv 的 pow 无法加载正确的 ruby 版本
Pow 适用于 ruby 2.0.0,但是当我想使用 1.9.3 时,pow 不会加载正确的 ruby 版本(ruby-version 文件存在正确的 ruby 版本)。
ruby-on-rails - Rack Pow 无法启动 ENOENT
尝试打开任何 *.dev 项目时会引发异常:
战俘日志:
版本:
- 战俘 0.4.1
- ruby 2.0.0p247(2013-06-27 修订版 41674)[x86_64-darwin12.4.0]
- 导轨 4.0.1
- 节点 v0.10.17(也使用 v0.10.18 进行了测试)
系统:
- OSX 10.9(小牛)
试过:
- 重新安装 Pow:没有帮助
- 重新安装 Node.JS:没有帮助
- 降级到 Pow 0.4.0 和 0.3.2:没有帮助
- 降级 Node.JS:没有帮助
- 系统重启:没有运气
另外,GitHub 上的问题:https ://github.com/37signals/pow/issues/422
有什么建议么?提前致谢
ruby-on-rails - Bundler::RubyVersionMismatch:您的 Ruby 版本是 1.9.3,但您的 Gemfile 指定的是 2.0.0
我正在使用带有 Pow、Ruby、Rails 和一堆有用 gem 的 Mac。每当我尝试打开我的应用程序时,我最近都会收到此错误。
Bundler::RubyVersionMismatch:您的 Ruby 版本是 1.9.3,但您的 Gemfile 指定的是 2.0.0
我理解这个错误,但我找不到为什么它在这里没有使用正确的版本。
一些可能有用的信息:
堆栈跟踪
RVM 和 Ruby 版本
知道我在这里缺少什么吗?谢谢!
ruby-on-rails - Pow:显示开发日志并使用 Pry?
我真的很喜欢 Pow,但我想我真的想念一种简单的方法来以某种方式简单地显示开发日志并与binding.pry
控制台进行交互。没有简单的方法可以做到这一点吗?我知道pry-remote
,但这只是一个不必要的额外步骤。
ruby-on-rails - What should I default_url_options[:host] for integration testing, if using Pow?
I'm using Pow to serve up my development environment. In my config/environments/development.rb and test.rb files, I had this line:
But of course that doesn't work, because then my RSpec/Capy integration test run against the development database and don't match the factory data.
Why does this even matter? I thought the testing suite spun up its own Rack server. Since it does appear to matter, to what do I set it?