无法将ruby应用程序部署到heroku“预编译资产失败”

时间:2018-09-05 05:34:36

标签: ruby-on-rails ruby heroku bitbucket web-deployment

我试图使用Bitbucket将Rails应用程序部署到Heroku,但是,它显示了我的ruby应用程序无法编译的错误。

enter image description here

我按照本文中的说明进行操作。 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

1 个答案:

答案 0 :(得分:0)

我遇到了同样的错误,当我删除公共文件夹时,先$rake assets:precompile然后再$git add -A $git commit -m "commit$git push heroku master

相关问题