1

我目前正在尝试将应用程序部署到 heroku https://github.com/Shopify/dashing/wiki/How-to%3A-Deploy-to-Heroku

我完全按照这些说明进行操作

bundle install
git init
git add .
git commit -m "My beautiful dashboard"

heroku apps:create myapp

git push heroku master

每次都收到这个错误

git push heroku master
Counting objects: 441, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (225/225), done.
Writing objects: 100% (441/441), 503.88 KiB | 445 KiB/s, done.
Total 441 (delta 170), reused 441 (delta 170)

-----> Heroku receiving push
-----> Ruby app detected
 !
 !     Gemfile.lock is required. Please run "bundle install" locally
 !     and commit your Gemfile.lock.
 !
 !     Heroku push rejected, failed to compile Ruby app
4

1 回答 1

1

你没有 Gemfile.lock 文件
试试 bundle install然后git commit -am "message you wanna put here"

如下所述,检查gitignore并删除/Gemfile.lock,再次提交可能会解决您的问题

于 2012-12-08T01:58:26.523 回答