繁体   English   中英

Git Push Heroku Master-失败了?

[英]Git Push Heroku Master - Failing?

所以我尝试将这个应用程序推送到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的数据库(虽然不知道它是否有任何相关性)

假设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资产:预编译错误 ”中找到一些建议,并且在本期中

打开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

还检查您的宝石

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM