[英]Git Push Heroku Master - Failing?
so i tried pushing this app to heroku: 所以我尝试将这个应用程序推送到heroku:
https://github.com/harrystech/prelaunchr
i am using virtualbox with ubuntu. 我在Ubuntu上使用virtualbox。
i installed ruby using this: 我使用以下方法安装了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)
However when i create my heroku app and tries to push the app to it it gives me this error: 但是,当我创建我的heroku应用程序并尝试将其推送到应用程序时,出现了以下错误:
http://pastebin.com/uF5PUsCM
for database i installed postgresql (dont know if it has any relevance though) 对于我安装了postgresql的数据库(虽然不知道它是否有任何相关性)
Assuming that git push heroku does indeed push to heroku (git remote -v would confirm it), the error messages are: 假设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
You can find a few suggestion in " Ruby on Rails Rake assets:precompile error " and in this issue : 您可以在“ Ruby on Rails Rake资产:预编译错误 ”中找到一些建议,并且在本期中 :
Open up
config/environments/production.rb
and make sure the following option is set to true:打开
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
Then run:
然后运行:
rake assets:precompile --trace RAILS_ENV=production
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.