Tag: heroku

Heroku上的预编译失败,initialize_on_precompile设置为false

我有一个应用程序,我正在尝试部署到Heroku的雪松堆栈。 在部署的预编译阶段,我收到错误: Your bundle is complete! It was installed into ./vendor/bundle Cleaning up the bundler cache. —–> Writing config/database.yml to read from DATABASE_URL —–> Preparing app for Rails asset pipeline Running: rake assets:precompile rake aborted! could not connect to server: Connection refused Is the server running on host “127.0.0.1” and accepting TCP/IP connections on port […]

Heroku | Ruby ArgumentError:缺少必需的参数:

我在/config/initializers/carrier_wave.rb中添加了aws访问信息: if Rails.env.production? CarrierWave.configure do |config| config.fog_credentials = { # Configuration for Amazon S3 :provider => ‘AWS’, :aws_access_key_id => ENV[‘access_key’], :aws_secret_access_key => ENV[‘secret_access_key’], } config.fog_directory = ENV[‘bucket’] end end 但是当我尝试推送到heroku时,我得到以下错误:我不知道还能做什么,任何帮助将不胜感激。 JUSTINs-iMac:premidx justindoshay$ git push heroku Fetching repository, done. Counting objects: 23, done. Delta compression using up to 4 threads. Compressing objects: 100% (11/11), done. Writing […]

Authlogic在Heroku上抛出错误

我正在尝试使用Authlogic插件在Heroku上发布一个应用程序。 日志向我显示此错误。 我首先想到的是gem版本有问题,但我尝试了几个:2.1.1,2.1.2,2.1.3。 但我尝试部署authlogic示例,但它会抛出相同的错误。 感谢您的时间。 Processing UserSessionsController#new (for 188.27.118.88 at 2009-10-03 01:34:08) [GET] Parameters: {“action”=>”new”, “controller”=>”user_sessions”} Rendering template within layouts/account Rendering user_sessions/new ActionView::TemplateError (undefined method `login’ for #) on line #12 of app/views/user_sessions/new.html.haml: 9: = f.text_field :login 10: %li 11: = f.label :password, “Password:” 12: = f.password_field :password 13: %li 14: = f.label :password, “Remember […]

工头从手动路径开始

我想在heroku上管理工头。 这是一个常见错误,但是,我仍然没有找到解决方案。 这里显然缺少一条路径: “/ c / Program Files /ruby-1.9.2/bin/foreman:”C:/ Program :bad interpreter:没有这样的文件或目录 我的问题是:有没有办法通过手动添加整个路径来避免此错误? 或者我应该在哪里改变它? 谢谢。

Mongo :: OperationFailure – 使用from_uri时需要登录

我的目标是连接我的heroku / mongolab数据库,但我不断收到此错误: Mongo::OperationFailure at /mongotest/a/b : need to login file: networking.rb location: send_message_with_gle line: 89 我正在使用的代码是: client = Mongo::MongoClient.from_uri(ENV[‘MONGOLAB_URI’]) db = client.db(‘test’) testcoll = db[‘testcoll’] testcoll.insert({:’_id’ => “def”, :’test’ => “woop de doop”}) testcoll.find() ENV[‘MONGOLAB_URI’]=mongodb://heroku_app########:password@ds0xxxxx.mongolab.com:xxxxx/heroku_app######## 我知道uri是正确的,包含用户名和密码,为什么会出错呢? 此外,错误发生在insert()行,而不是我validation的行。

使用Heroku和Ruby连接到VPN后面的服务器

我正在Ruby / RoR中编写一个将在Heroku上托管的应用程序。 它的一个要求是它连接到Sonicwall VPN后面的(Active Directory)身份validation服务器。 如何使用Ruby建立此VPN身份validation以访问此服务器?

Rails Heroku服务器回形针Amazon S3 – AWS :: S3 :: Errors :: RequestTimeout

当我使用附加图像保存我的konkurrencer模型时,我在Heroku上收到错误,但在我的本地服务器上没有。 。 我的heroku日志: ←[36m2012-04-01T17:45:37+00:00 app[web.1]:←[0m Started POST “/admin/konkurrencer s” for MYIP at 2012-04-01 10:45:37 -0700 ←[33m2012-04-01T17:46:01+00:00 heroku[router]:←[0m POST www.konkurrencerher.dk/a dmin/konkurrencers dyno=web.1 queue=0 wait=0ms service=24565ms status=500 bytes= 728 ←[32m2012-04-01T17:46:01+00:00 heroku[nginx]:←[0m MYIP – – [01/Apr/201 2:17:46:01 +0000] “POST /admin/konkurrencers HTTP/1.1” 500 728 “http://www.konku rrencerher.dk/admin/konkurrencers/new” “Mozilla/5.0 (Windows NT 6.1; WOW64; rv:1 1.0) Gecko/20100101 Firefox/11.0” www.konkurrencerher.dk ←[36m2012-04-01T17:46:01+00:00 app[web.1]:←[0m ←[36m2012-04-01T17:46:01+00:00 […]

在heroku上通过bundler安装linecache

我在rails 3.0应用程序上使用RVM使用Ruby 1.9.2。 which ruby /home/ved/.rvm/rubies/ruby-1.9.2-p136/bin/ruby 当我推送到heroku时,我收到以下错误: Installing linecache19 (0.5.12) /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems installer.rb:164:in `install’: linecache19 requires Ruby version >= 1.9.2(Gem::InstallError) from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/source.rb:95:in `install’ from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/installer.rb:55:in `run’ from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/spec_set.rb:12:in `each’ from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/spec_set.rb:12:in `each’ from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/installer.rb:44:in `run’ from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/installer.rb:8:in `install’ from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/cli.rb:225:in `install’ from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/vendor/thor/task.rb:22:in `send’ from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/vendor/thor/task.rb:22:in `run’ from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task’ from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/vendor/thor.rb:246:in `dispatch’ from /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:389:in `start’ […]

随机慢速Rack :: MethodOverride#调用Heroku上的rails应用程序

环境: Ruby:2.1.2 Rails:4.1.4 Heroku的 在我们在Heroku上托管的rails应用程序中,有时请求需要很长时间才能执行。 它只有1%或更少,但我们无法弄清楚它发生了什么。 我们安装了newrelic代理,它说它不是请求排队 ,它是占用所有时间执行的事务本身。 但是,事务跟踪显示如下: (同样的要求大多数时间只需要100毫秒执行) 据我所知,在我们的控制器被调用之前消耗的时间。 它消耗了 Rack::MethodOverride#call 这就是我们无法理解的。 此外,大多数时候(甚至总是,我们不确定)这种情况发生在移动设备发送的POST请求上。 这可能与缓慢的连接有关吗? (虽然POST-payload非常小)。 有没有人经历过这个? 关于如何继续探索这个问题的任何建议表示赞赏。 提前致谢!

通过SSL发布UTF-8时,HEROKU上的“EOFError:文件结束”

我对heroku有一个奇怪的错误。 为了重现它,我必须在请求正文中使用任何UTF-8字符进行大(超过几KB)HTTPS POST。 这是一个例子: require “net/https” require “uri” #Accutally I’ve ecountered this bug while posting to another server url = URI.parse(“https://api.heroku.com/myapps”) #It’s Ukrainian ‘oiced velar plosive G’ letter payload = “ґ”*10000 request = Net::HTTP::Post.new(url.path) request.body = payload http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.read_timeout = 500 http.start {|http| http.request request } 在本地机器的irb上运行这样的脚本给了我: # ……这是预期的,但是在heroku雪松上,在’heroku […]