运行后
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
我试着查看app / vendor并且捆绑包不在那里。我尝试使用捆绑安装和捆绑更新。
更新
我检查并发布了' https:rubygems.org'在我的宝石文件中。
我尝试运行捆绑安装部署
bundle install --deployment
并遇到了同样的错误。
答案 0 :(得分:0)
您的Gemfile没有gem服务器源。如果您需要机器上尚未存在的宝石,请在Gemfile中添加如下所示的行:
public class ContactsAdapter : BaseAdapter { Activity activity; List<Contact> contactList; public ContactsAdapter(Activity activity) { this.activity = activity; FillContacts(); } void FillContacts() { var uri = calllog.ContentUri; //var uri = ContactsContract.Contacts.ContentUri; string[] projection = { calllog.Number, calllog.Date, calllog.Duration, calllog.Type, calllog.CachedName, calllog.CachedPhotoId }; // CursorLoader introduced in Honeycomb (3.0, API11) var loader = new CursorLoader(activity, uri, projection, null, null, null); var cursor = (ICursor)loader.LoadInBackground(); contactList = new List<Contact>(); if (cursor.MoveToFirst()) { do { contactList.Add(new Contact { Number = cursor.GetString(cursor.GetColumnIndex(projection[0])), Date = cursor.GetLong(cursor.GetColumnIndex(projection[1])), Duration = cursor.GetString(cursor.GetColumnIndex(projection[2])), Type = cursor.GetString(cursor.GetColumnIndex(projection[3])), Name = cursor.GetString(cursor.GetColumnIndex(projection[4])), PhotoId = cursor.GetString(cursor.GetColumnIndex(projection[5])) }); } while (cursor.MoveToNext()); } } public override int Count { get { return contactList.Count; } } public override Java.Lang.Object GetItem(int position) { return null; } public override long GetItemId(int position) { return 0; } public override View GetView(int position, View convertView, ViewGroup parent) { var view = convertView ?? activity.LayoutInflater.Inflate(Resource.Layout.CallLogItems, parent, false); var callNum = view.FindViewById<TextView>(Resource.Id.NumTxtVw); var callType = view.FindViewById<ImageView>(Resource.Id.TypeIndicatImgVw); var calldate = view.FindViewById<TextView>(Resource.Id.CallTime); var name = view.FindViewById<TextView>(Resource.Id.CallerNameTxtVw); var contactImg = view.FindViewById<ImageView>(Resource.Id.ContactImgVw); callNum.Text = contactList[position].Number; calldate.Text = ConvertToDate.ToDateTimeFromEpoch(contactList[position].Date).ToString();// ToDateTimeFromEpoch(contactList[position].Date).ToString(); if (string.IsNullOrWhiteSpace(contactList[position].Name)) { name.Text = "Unkown"; } else { name.Text = contactList[position].Name; } if (contactList[position].PhotoId == null) { contactImg = view.FindViewById<ImageView>(Resource.Id.ContactImgVw); contactImg.SetImageResource(Resource.Drawable.contactimg); } else { contactImg = view.FindViewById<ImageView>(Resource.Id.ContactImgVw); contactImg.SetImageResource(Resource.Drawable.contactimg); } if (contactList[position].Type == "1") { var contactImage = view.FindViewById<ImageView>(Resource.Id.TypeIndicatImgVw); contactImage.SetImageResource(Resource.Drawable.incoming); } else if (contactList[position].Type == "2") { var contactImage = view.FindViewById<ImageView>(Resource.Id.TypeIndicatImgVw); contactImage.SetImageResource(Resource.Drawable.outgoing); } else if (contactList[position].Type == "3") { var contactImage = view.FindViewById<ImageView>(Resource.Id.TypeIndicatImgVw); contactImage.SetImageResource(Resource.Drawable.misssedcall); } else if (contactList[position].Type == "4") { var contactImage = view.FindViewById<ImageView>(Resource.Id.TypeIndicatImgVw); contactImage.SetImageResource(Resource.Drawable.voicemail); } else if (contactList[position].Type == "5") { var contactImage = view.FindViewById<ImageView>(Resource.Id.TypeIndicatImgVw); contactImage.SetImageResource(Resource.Drawable.reject); } else if (contactList[position].Type == "6") { var contactImage = view.FindViewById<ImageView>(Resource.Id.TypeIndicatImgVw); contactImage.SetImageResource(Resource.Drawable.blocked); } return view; } }
似乎 source 'https://rubygems.org'
您可以尝试在Gemfile
Gemfile
然后再试一次