尝试运行 POW 时出现神秘错误 [英] Cryptic error when trying to run POW

查看:67
本文介绍了尝试运行 POW 时出现神秘错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在为我的 rails 应用程序运行 POW 时,我收到一条相当奇怪的错误消息.

I am having a rather weird error message when running POW for my rails app.

我按照说明操作:

- cd ~/.pow
- ln -s /Users/mingyeow/Dailymuses-Server-Side

得到这个:

Error starting application
Your Rack app raised an exception when Pow tried to run it.
Error: '/Users/mingyeow/Dailymuses-Server-Side/.powrc' failed to load:
true &&
source '/Users/mingyeow/Dailymuses-Server-Side/.powrc' > /dev/null &&
env > '/var/folders/cl/fd2wt82149x9trkxmsvqrt500000gn/T/pow.18625.1358760244196.27206'
Error: '/Users/mingyeow/Dailymuses-Server-Side/.powrc' failed to load:
true &&
source '/Users/mingyeow/Dailymuses-Server-Side/.powrc' > /dev/null &&
env > '/var/folders/cl/fd2wt82149x9trkxmsvqrt500000gn/T/pow.18625.1358760244196.27206'
    at ChildProcess.exithandler (child_process.js:282:15)
    at ChildProcess.emit (events.js:70:17)
    at maybeExit (child_process.js:362:16)
    at Process.onexit (child_process.js:398:5)

尝试重置我能找到的所有内容.

Tried resetting everything I could find.

推荐答案

我今天在安装 Octopress 时遇到了完全相同的错误.

I've had the exact same error today with an Octopress install.

您的 .powrc 是否如下所示?

Does your .powrc look like the following?

if [ -f "$rvm_path/scripts/rvm" ] && [ -f ".rvmrc" ] ; then
   source "$rvm_path/scripts/rvm"
   source ".rvmrc"
fi

这是 Octopress 提供的,但我想它很通用.

That's the one provided with Octopress, but I guess it's pretty generic.

就我而言,我修改了 .rvmrc 文件,它包含一个语法错误.我更正了错误,删除了 ~/.pow 中的符号链接并重新创建了它,一切都恢复了正常.

In my case, I had modified the .rvmrc file and it contained a syntax error. I corrected the error, deleted the symlink in ~/.pow and created it again, and all went back to normal.

希望有帮助!
(如果没有,也许您应该使用 .powrc 文件的内容更新您的问题)

Hope that helps!
(if not, maybe you should update your question with the content of your .powrc file)

这篇关于尝试运行 POW 时出现神秘错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆