运行后
mina deploy我得到了这个错误
mina deploy
-----> Creating a temporary build path
-----> Fetching new git commits
-----> Using git branch 'master'
Cloning into '.'...
done.
-----> Using this git commit
root (e1bd364):
> fixes fo rmina
-----> Symlinking shared paths
-----> Installing gem dependencies using Bundler
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Your Gemfile has no gem server sources. If you need gems that are not already on
your machine, add a line like this to your Gemfile:
source 'https://rubygems.org'
Your bundle is locked to rake (12.0.0), but that version could not be found in
any of the sources listed in your Gemfile. If you haven't changed sources, that
means the author of rake (12.0.0) has removed it. You'll need to update your
bundle to a different version of rake (12.0.0) that hasn't been removed in order
to install.
! ERROR: Deploy failed.
-----> Cleaning up build
Unlinking current
OK
Connection to app.com closed.
! Run Error如果我运行bundle show rake,我会看到以下内容
/var/lib/gems/2.3.0/gems/rake-12.0.0我试着在应用程序/供应商中查找,但bundler不在那里。我尝试使用捆绑包安装和捆绑包更新。
更新:
我检查了一下,源代码'https:rubygems.org‘在我的and文件中。
我尝试运行包安装部署
bundle install --deployment 也遇到了同样的错误。
发布于 2017-01-30 13:36:37
你的Gemfile没有gem服务器源。如果您需要尚未在您的计算机上的gem,请在Gemfile中添加如下一行:
在您的Gemfile中似乎没有指定gem源
您可以尝试将此行添加到Gemfile的顶部
source 'https://rubygems.org'然后重试
发布于 2017-02-24 15:22:07
因此,这个问题与权限有关,并像错误所述那样以root身份运行。
我将mina和其他一些gem文件夹放在一个不同的用户下,同时以root用户身份进行部署。一旦我清除了文件的所有权,并将用户添加为根用户,mina就可以正确部署了。
https://stackoverflow.com/questions/41929473
复制相似问题