Questions tagged [heroku]

Heroku is a cloud platform for Ruby, Node.js, Python, Scala, Clojure, Go, PHP, and JVM-based applications. It features Git-based, GitHub, and API deployment strategies, a large number of services offered as add-ons, and a full API.

Heroku (pronounced her-OH-koo) is a cloud platform for , , , and -based (, , , etc.) applications. It features, among other things:

Git-based deployment strategy

Applications on Heroku are managed with Git. Simply pushing your codebase to Heroku is all it takes to deploy your application.

Add-Ons

Heroku offers a growing number of add-ons via its add-on provider program. Additional services, such as error tracking and reporting, incoming and outgoing email services, hosted no-SQL databases, full-text search and more, are available via a few clicks or commands on the prompt.

Dev Center

Heroku Dev Center contains official guides for platform, languages and add-ons etc.,

Buildpacks

Any language not supported by default can be enabled by creating a custom 'buildpack'.

Configuration

For greater safety and portability, Heroku allows you to manage environment-specific configuration separately from your source code.

Fully Managed, Multi-Tenant Architecture

Heroku's architecture is designed to keep your app running smoothly with minimal interaction on your part. The Heroku site has a detailed explanation of its architecture.

Full API

All of Heroku's functionality can be accessed from the command line (via the Heroku gem), including managing SSH keys, increasing or decreasing the number of dynos, managing SSL certificates, adding or removing add-ons, and more.

Rails 4

Prior to Rails 4, Heroku uses the plugin system to inject some code into your application when you deploy. Plugins are no longer supported in Rails 4, so Heroku has provided some gems. Please see the Rails 4 Documentation

Reference Links:

43716 questions
72
votes
13 answers

Heroku: Your account has reached its concurrent build limit

I'm trying to deploy my app to heroku, currently using the free tier. Over the past 5 days I've been redeploying the app as I made changes. I went overzealous with the deploys and now my app is up to version 35 on heroku under the "activity"…
kshatriiya
  • 1,129
  • 2
  • 10
  • 19
71
votes
6 answers

Any reason not use PostgreSQL's built-in full text search on Heroku?

I'm preparing to deploy a Rails app on Heroku that requires full text search. Up to now I've been running it on a VPS using MySQL with Sphinx. However, if I want to use Sphinx or Solr on Heroku, I'd need to pay for an add-on. I notice that…
Ethan
  • 57,819
  • 63
  • 187
  • 237
70
votes
10 answers

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided does not match the recipient window's origin ('null')

I have a game in heroku, now I'm trying to make it work in Facebook canvas, but, while it works in Firefox, in Chrome and IE doesn't. IE shows a warning with a button, when clicking the button, it shows the content. In chrome, I get this…
Sascuash
  • 3,661
  • 10
  • 46
  • 65
69
votes
18 answers

Node.js, PostgreSQL error: no pg_hba.conf entry for host

I am following this article ((http://nodeexamples.com/2012/09/21/connecting-to-a-postgresql-database-from-node-js-using-the-pg-module/). I have already deployed my app to heroku and currently using express, node.js, to try and connect to a…
stcho
  • 1,909
  • 3
  • 28
  • 45
69
votes
6 answers

heroku and github at the same time

So I understand that heroku functions as a git repository, but let's say i want to use github as well as a repository. How do I set it up such that I have two repositories and both are in sync?
K L
  • 1,373
  • 2
  • 15
  • 21
68
votes
8 answers

Restart my heroku application automatically

This terminal command restarts my heroku application: heroku restart Is there a way to run a script that will run this command and restart my application every hour?
Oded Harth
  • 4,367
  • 9
  • 35
  • 62
68
votes
4 answers

Killing abandoned process on Heroku

I killed an IRB prompt in a not-so-graceful manner (started with heroku run irb), and now I've got a zombie process which I can't seem to kill: Process State Command ------------ ------------------ …
Ashley Williams
  • 6,770
  • 4
  • 35
  • 42
68
votes
3 answers

How can I push a part of my git repo to Heroku?

I have a multi-module app that is already on Github. It is comprised of two modules, one of them an Android app and the other a Rails based Web app. So my project's directory structure is in the form of: ProjectRoot | +-- web | +-- android | +--…
Behrang
  • 46,888
  • 25
  • 118
  • 160
68
votes
13 answers

Heroku push rejected, failed to install gems via Bundler

I am struggling to push my code to Heroku. And after searching on Google and Stack Overflow questions, I have not been able to find the solution. Here is What I get when I try "git push heroku master" : Heroku receiving push -----> Rails app…
ismaelsow
  • 757
  • 2
  • 6
  • 6
67
votes
9 answers

How can I specify a gem to pull from a private github repository?

I have a private repository on Github that I want to use. I deploy my app to Heroku. How can I specify a private repository as the source on my gemfile? I imagine it wouldn't be enough to simply say gem "mygem", :git=>"my github address"
picardo
  • 24,530
  • 33
  • 104
  • 151
65
votes
20 answers

IP Address Mismatch on signing into Heroku CLI

Previously I could sign into the heroku command line interface with heroku login. But now I get an IP address mismatch error. How should I resolve this?
Christian Doucette
  • 1,104
  • 3
  • 12
  • 21
65
votes
5 answers

'Self signed certificate' error during query the Heroku hosted Postgres database from the Node.js application

My Node.js app is able to work with local Postgres database via npm pg module. I can connect to the Heroku hosted Postgres database (free Hobby Dev plan) via command line with heroku pg:psql command as well. But when my Node.js app is trying to…
akzhar
  • 653
  • 1
  • 5
  • 5
65
votes
10 answers

Rails 3 and Heroku: automatically "rake db:migrate" on push?

I have a slight annoyance with my heroku push/deploy process, which otherwise has been a joy to discover and use. If i add a new migration to my app, the only way i can get it up onto the heroku server is to do a push to the heroku remote. This…
Max Williams
  • 32,435
  • 31
  • 130
  • 197
65
votes
5 answers

Could not find a version that satisfies the requirement pkg-resources==0.0.0

My app is deployed on heroku. When I push my code via git push heroku master. It gives me this error Collecting pkg-resources==0.0.0 (from -r requirements.txt (line 14)) remote: Could not find a version that satisfies the requirement…
Mahammad Adil Azeem
  • 9,112
  • 13
  • 57
  • 84
65
votes
9 answers

Rails 4 images not loading on heroku

I have spent the better part of the day trying to get images to load on my heroku app. Everything I try works locally, but not after being deployed to heroku. I have png files saved in the images folder under my assets. I am referencing these…
brad
  • 1,675
  • 2
  • 16
  • 23