pow says: Bundler::GemNotFound: Could not find rake-0.9.2.2 in any of the sources

后端 未结 4 2002
星月不相逢
星月不相逢 2021-01-30 04:34

I have a rails app that runs fine with rails s, but when I try to load it using pow I\'m getting this error:

Bundler::GemNotFound: Could not find ra         


        
4条回答
  •  有刺的猬
    2021-01-30 05:05

    I've been using this .powrc which nicely covers all bases:

    if [ -f "$rvm_path/scripts/rvm" ]; then
      source "$rvm_path/scripts/rvm"
    
      if [ -f ".rvmrc" ]; then
        source ".rvmrc"
      fi
    
      if [ -f ".ruby-version" ]; then
        rvm use `cat .ruby-version`
      fi
    
      if [ -f ".ruby-gemset" ]; then
        rvm gemset use --create `cat .ruby-gemset`
      fi
    fi
    

    Taken from here https://gist.github.com/nbibler/5307941 (thanks nbibler!)

提交回复
热议问题