Cryptic error when trying to run POW

倾然丶 夕夏残阳落幕 提交于 2020-01-15 02:35:26

问题


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

I followed the instructions:

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

And got this:

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.


回答1:


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

Does your .powrc look like the following?

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

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

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.

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



来源:https://stackoverflow.com/questions/14435735/cryptic-error-when-trying-to-run-pow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!