heroku

Hosting on heroku from cloud9

非 Y 不嫁゛ 提交于 2019-12-25 08:58:31
问题 I am trying to create a new app and then push my application to heroku but any time I type heroku create the following error appears. Any help would be appreciated. /usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/dependency.rb:308:in `to_specs': Could not find 'heroku' (>= 0.a) among 392 total gem(s) (Gem::MissingSpecError) Checked in 'GEM_PATH=/usr/local/rvm/gems/ruby-2.3.0:/usr/local/rvm/gems/ruby-2.3.0@global', execute `gem env` for more information from /usr/local/rvm

Heroku logs show syntax error in syck.rb. How to resolve this?

一笑奈何 提交于 2019-12-25 08:57:59
问题 I'm trying to deploy a Rails 3.2 app to Heroku. When I migrate the database, the rake is aborted. Checking the logs I see /usr/local/lib/ruby/1.9.1/syck.rb:135:in `load': syntax error on line 7, col 11: `' (ArgumentError) I've tried to track down what's causing this, including disabling all non essential gems, reviewing the app for obvious syntax errors, etc. But no luck. As this error seems to be generated by a Heroku system file, I'm not sure what to try next. Has anyone else encountered

heroku is not using the ruby version mentioned in Gemfile

早过忘川 提交于 2019-12-25 08:35:54
问题 I have a ruby application which uses ruby-2.3.1 , and it is mentioned in the Gemfile. But when we are pushing the application to heroku, it always ends up using ruby-2.2.4 . I have tried all possible solutions like updating bundler and all, but no success; it's still using ruby-2.2.4. We also restated the dynos. Any wired steps we are missing? Gemfile: source 'https://rubygems.org' # if there is a super emergency and rubygems is playing up, try #source 'http://production.cf.rubygems.org' ruby

Django - failed to push some refs to git@heroku.com

↘锁芯ラ 提交于 2019-12-25 08:29:31
问题 Have been pushing my git to Heroku for some time and always worked. Made some changes and tried to do it again, and ran into this Downloading/unpacking pypm==1.3.4 (from -r requirements.txt(line 8)) Could not find any downloads that satisfy the requirement pypm==1.3.4(from -r requirements.txt( line 8)) No distributions at al found for pypm ==1.3.4 (from -r requirements.txt (line 8)) Storing com,plete log in /app/.pip/pip.log Heroku push rejected, failed to compile Python/django app error:

PostgreSQL query works locally (9.x), but gives syntax error on Heroku (8.x)

陌路散爱 提交于 2019-12-25 08:14:16
问题 I developed my site and it works like a charm on my local machine. The query is supplied by a fellow Stackoverflow member in this thread. schema.rb portion that is relevant Same data locally as on Heroku. select * from ( select * , row_number() over (partition by odds_type order by odds_index desc) as rn2 from ( select * , row_number() over (partition by event_id, bookmaker_id, odds_type order by created_at desc) as rn1 from Odds where event_id = #{e.id} ) sub1 where rn1 = 1 ) sub2 where rn2

boto3 signature doesn't match with S3

不问归期 提交于 2019-12-25 08:00:08
问题 I'm trying to make an upload from Heroku to S3 using boto3 but I keep getting the error <Error><Code>SignatureDoesNotMatch</Code><Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message> . I've tried using a pre-signed post and a pre-signed url but the error persists. The credentials that I'm providing to Heroku to make the request are my root AWSAccessKeyID and Secret key, so I shouldn't have issues with permissions.

How can I workaround heroku's 30 sec timeout when executing long PLSQL procedure in Rails?

☆樱花仙子☆ 提交于 2019-12-25 07:40:09
问题 In a rails web app I needed to develop a page where I can launch PLSQL procedures. I finally developed it by this tutorial: How can I call a PLSQL function in rails, by clicking a button in a view? But I have a huge problem. The procedures I want to launch can run for several hours. The web app is in Heroku, which has a timeout set to 30 seconds. How can I rewrite my code in order to bypass this 30 sec timeout, and run the extremely long PLSQL procedures? 回答1: sounds like a thing for

Send an outbound POST request using HTTPS on Openshift/Heroku

家住魔仙堡 提交于 2019-12-25 07:36:42
问题 It seems like all outbound requests (e.g. http.request(…) , restify.post(…) ) send to an https:// URL are being converted to http:// for some reason (OpenShift proxying?). How can I call an external API and make sure I hit the HTTPS URL instead of the HTTP one? Here's a concrete example. This call to the StubHub API works perfectly when I run it from localhost , but as soon as I run it in an OpenShift or Heroku NodeJS container/dyno, I get forced to http://api.stubhub.com/ and accordingly get

Keep getting unidentified method 'field' for undefined method `bio' for #<User:>

馋奶兔 提交于 2019-12-25 07:24:02
问题 I just deployed my app to Heroku and I'm facing this problem. In the sign up page: <div class="field"> <%= f.label :bio %><br /> <%= f.text_field :bio %> </div> and in the logs ActionView::Template::Error (undefined method `bio' for #<User:0x007f5e772493c0>): <div class="field"> <%= f.label :bio %><br /> <%= f.text_field :bio %> </div> Any thoughts on this? Thanks Ps. used to work fine before deployment EDIT I tried to migrate but I got this error Couldn't create database for {"adapter"=>

When pushing to Heroku: An error occurred in the application and your page could not be served. Please try again in a few moments

£可爱£侵袭症+ 提交于 2019-12-25 07:13:06
问题 I've been stuck on this for a few hours and can't seem to get it working. I am following a tutorial and I'm trying to push my app to Heroku. My gemfile looks like: source 'https://rubygems.org' ruby '2.0.0' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '4.1.1' # Gems used only for assets and not required # in production environments by default. group :assets do # Use SCSS for stylesheets gem 'sass-rails', '~> 4.0.3' gem 'coffee-rails' gem 'uglifier', '1.2.3' end