我试图使用Bitbucket将Rails应用程序部署到Heroku,但是,它显示了我的ruby应用程序无法编译的错误。
我按照本文中的说明进行操作。 Auto-Deployment Using Bitbucket and Heroku
我的pipeline.yml
文件如下:
image: ruby:2.4.0
clone:
depth: full
pipelines:
default:
- step:
# set HEROKU_API_KEY and HEROKU_APP_NAME environment variables
# set clone `depth: full' as described here: https://confluence.atlassian.com/x/Y9-5Mw
name: Deploy to Heroku
deployment: test # set to test, staging or production
# trigger: manual # uncomment to have a manual step
script:
- git push https://heroku:$HerokuAPI@git.heroku.com/$HerokuName.git HEAD
definitions:
caches:
bundler: ./vendor
答案 0 :(得分:0)
我遇到了同样的错误,当我删除公共文件夹时,先$rake assets:precompile
然后再$git add -A $git commit -m "commit
” $git push heroku master