Tag: 雪松

如何使用Rails在Heroku雪松堆栈上安装python模块

我们在Heroku Cedar堆栈上运行了一个rails应用程序,我们需要一个外部python模块,即’pyPdf’。 不幸的是,它不是预先安装的python模块之一。 有没有办法在Cedar堆栈上安装python模块? 我试图在我的应用程序的根目录添加requirements.txt,但这似乎不起作用。 可能是因为Heroku在看到我们的Gemfile后将其解散了。 任何帮助赞赏。

redmine部署在heroku雪松上

我一直在撞墙试图在heroku雪松上部署redmine 2.0.3。 使用sqlite gem进行部署时遇到了很多问题,所以我从Gemefile中删除了所有sqlite引用,删除了Gemfile.lock,运行了bundle install,并愉快地推送到了heroku。 我运行了heroku run rake db:migrate ,我浏览了我的应用程序( http://blooming-river-8784.herokuapp.com/ ),我看到以下内容: UPDATE! – >当我运行heroku run rake db:migrate我收到以下警告消息: Running rake db:migrate attached to terminal… up, run.1 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 […]

Heroku * .js不是预编译错误

我在Heroku Cedar堆栈上使用Rails,并且在编译资产时没有抛出任何问题,但后来我得到了500个内部服务器错误: 2012-06-25T23:22:59+00:00 app[web.1]: ActionView::Template::Error (bootstrap-datepicker.js isn’t precompiled): 知道是什么原因造成的吗? 这是我包含的javascript文件(除了我在本地下载) https://github.com/eternicode/bootstrap-datepicker/blob/master/js/bootstrap-datepicker.js 我将它包含在我的application.html.erb中,如下所示: 是因为它不是coffeescript文件吗? 任何帮助表示赞赏!

是否可以使用Ruby 1.9.3在Heroku上运行我的Rails应用程序? 如果是这样,怎么样?

我试过这个提示: https : //github.com/thoughtbot/laptop/pull/14#issuecomment-3192270 。 在部署我看到 —–> Using RUBY_VERSION: ruby-1.9.3-p0 但我的日志显示环境变量不受尊重 INFO ruby 1.9.2 (2011-07-09) [x86_64-linux] 接受Hack​​y /实验解决方案! 编辑:我在雪松堆上。

“耙子流了! 堆栈级别太深“部署到Heroku时

我的网站曾经在工作,Heroku预编译资产和一切。 现在,似乎无处不在,我开始在部署时收到此消息: Preparing app for Rails asset pipeline Running: rake assets:precompile mkdir -p /tmp/build_31cexir1p9pwn/public/assets mkdir -p /tmp/build_31cexir1p9pwn/public/assets/icons mkdir -p /tmp/build_31cexir1p9pwn/public/assets/icons mkdir -p /tmp/build_31cexir1p9pwn/public/assets mkdir -p /tmp/build_31cexir1p9pwn/public/assets (in /tmp/build_31cexir1p9pwn) mkdir -p /tmp/build_31cexir1p9pwn/public/assets mkdir -p /tmp/build_31cexir1p9pwn/public/assets rake aborted! stack level too deep (in /tmp/build_31cexir1p9pwn/app/assets/stylesheets/theme.css.scss) (See full trace by running task with –trace) Precompiling assets failed, enabling runtime […]

生产佣金任务不承认我的模型

当我运行Heroku Bamboo时,这从来都不是问题。 现在,在Cedar上,每当我尝试从服务器上的rake任务中访问我的模型时,我都会收到错误。 rake db:seed ,标准rake任务以及我自己的自定义构建任务明确包括:environment。 我甚至多余地这样做: namespace :db do desc “Update db” task :new_seed => :environment do require ‘./Scraped_Data/Games/code/column-headers.rb’ require ‘csv’ require ‘net/http’ require ‘./config/environment.rb’ # code here… end end 我在其他地方找不到任何关于这个问题的提及,所有这些任务都在开发中完美运行。 感谢您的任何见解,这里是完整的错误消息,一旦他们在Heroku上遇到我的模型,rake任务就会吐出来: rake aborted! uninitialized constant Object::Movie /app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/ext/module.rb:36:in `const_missing’ /app/lib/tasks/new_seed.rake:187:in `block in load_scraped_data’ /app/vendor/bundle/ruby/1.9.1/gems/rest-open-uri-1.0.0/lib/rest-open-uri.rb:37:in `open’ /app/vendor/bundle/ruby/1.9.1/gems/rest-open-uri-1.0.0/lib/rest-open-uri.rb:37:in `open’ /app/lib/tasks/new_seed.rake:148:in `load_scraped_data’ /app/lib/tasks/new_seed.rake:550:in `block (2 levels) in […]

Rails 3.2:Heroku推送拒绝,没有检测到Cedar支持的应用程序

Rails新手在这里。 我正在尝试将我的Rails 3.1 / Ruby 1.9.3-p0应用程序部署到Heroku,并按照Heroku的所有步骤进行操作。 但我一直遇到: Heroku推送拒绝,没有检测到Cedar支持的应用程序 我已经尝试了这个问题的所有建议,但到目前为止都没有成功。

Heroku_can不能升级到Cedar-14

按照Heroku的要求,我试图从Cedar-10升级到Cedar-14,但是徒劳无功。 在我的控制台上,当我执行时 heroku stack:set cedar-14 我明白了: `stack:set` is not a heroku command. 即使我已经安装了最新版本的heroku toolbelt(我在Windows上),我也会收到相同的错误消息 非常感谢