73291

Failed to deploy redmine to HEROKU due to Gemfile.lock nonexistence

Question:

I had this particular error upon pushing/deploying to Heroku

Counting objects: 92259, done. Delta compression using up to 4 threads. Compressing objects: 100% (19977/19977), done. Writing objects: 48% (45054/92259), 13.63 MiB | 103 KiB/s Writing objects: 100% (92259/92259), 23.82 MiB | 87 KiB/s, done. Total 92259 (delta 72165), reused 90569 (delta 70774) -----> Ruby/NoLockfile app detected ! ! Gemfile.lock required. Please check it in. ! ! Push rejected, failed to compile Ruby/NoLockfile app To git@heroku.com:xiruki-task.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'git@heroku.com:xiruki-task.git'

I've tried to remove the Gemfile.lock and bundle install again but no luck.

Any workarounds will be appreciated.

Answer1:

run bundle install and that will generate your gemfile.lock. Then commit it and deploy to heroku

Recommend

  • XMPP Bosh vs SignalR
  • Rails 4, Devise & Mandrill emails
  • Expression-bodied members for VB.NET?
  • HTML5 Elements and HTML Structuring/Sectioning
  • Is it possible to serialize string to json with single slashes?
  • flutter how to center widget inside list view
  • Trying to compile Java source (could not find main class)
  • Powershell with UiPath
  • How to download bytea column as file using Java
  • How to create Primefaces radioButtons from List?
  • How secure is https?
  • Is there a modern ( e.g. CLR ) replacement for bison / yacc?
  • WPF binding to property of all items in a collection
  • overriding equals and hashcode methods in java?
  • SFINAE for class member function (one compiles the other not)
  • failed to resolve: com.google.firebase:firebase-core:16.0.0
  • Objects Sorting With date ,Time Problem in Array(Iphone Development)
  • How to add tag during runtime in C#
  • MySQL - Filter records which date is biggest
  • What is need of Assign/Deassign in Verilog?
  • getting the values of checkboxes in a checkboxlist control
  • Django self join , How to convert this query to ORM query
  • android check if file exists with case sensitivity?
  • How to sort by Lucene.Net field and ignore common stop words such as 'a' and 'the
  • Why am I getting an Argument exception when creating event handler dynamically?
  • Validating my form with Jquery
  • ASP.NET GridView throws: The version of SQL Server in use does not support datatype 'date'
  • Authorize Attribute Authentication with Postman in Web Api
  • How to add html image in to velocity template file to send email?
  • Copy and paste data from multiple workbooks to a worksheet in another Workbook
  • Multiplying polynomials/simplifying like terms
  • using maven pom while creating jar:test-jar some times it says JAR will be empty - no content was ma
  • How to configure the APNS.Certificate in the arm template
  • DataTables move rows between tables
  • Why does Rails 3 think xE2x80x89 means â x80 x89
  • PHP Permalinks.. how to change?
  • media foundation H264 decoder not working properly
  • Running R's aov() mixed effects model from Python using rpy2
  • Access to a Matlab gui from the web
  • JavaScript RegExp Replace