Git Push Heroku Master - 失败?

时间:2014-10-25 23:15:31

标签: ruby-on-rails git heroku

所以我尝试将此应用推送到heroku:

https://github.com/harrystech/prelaunchr    

我在ubuntu上使用virtualbox。

我用这个安装了ruby:

$ sudo apt-get install curl   # Required
$ curl -L get.rvm.io | bash -s stable   # Get RVM
$ source ~/.bashrc   # Reboot the shell
$ rvm requirements   # To get the command below
$ sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-   core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion  # Install Libraries
$ rvm install 1.9.3   # Install ruby v1.9.3
$ rvm use 1.9.3
$ gem install rails   # Install rails (I had to run this command twice. Error trying to find railties the first time.. weird)    

然而,当我创建我的heroku应用程序并尝试将应用程序推送到它时,它给了我这个错误:

http://pastebin.com/uF5PUsCM

对于我安装了postgresql的数据库(不知道它是否有任何相关性)

1 个答案:

答案 0 :(得分:1)

假设git push heroku确实推送到heroku(git remote -v会确认),错误消息是:

   Running: rake assets:precompile
   DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb.
   rake aborted!
   refer/cream-tooltip@2x.png isn't precompiled

你可以在" Ruby on Rails Rake assets:precompile error"中找到一些建议。并在this issue

  

打开config/environments/production.rb并确保将以下选项设置为true:

# Don't fallback to assets pipeline if a precompiled asset is missed
config.assets.compile = true
config.serve_static_assets = true
  

然后运行:

rake assets:precompile --trace RAILS_ENV=production

Check also your gems