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
102
votes
5 answers

How to fix the uninitialized constant Rake::DSL problem on Heroku?

I am getting errors similar to the ones in these questions, except mine are occuring on Heroku: 2011-05-30T09:03:29+00:00 heroku[worker.1]: Starting process with command: `rake jobs:work` 2011-05-30T09:03:30+00:00 app[worker.1]: (in…
ben
  • 29,229
  • 42
  • 124
  • 179
102
votes
6 answers

Allow CORS REST request to a Express/Node.js application on Heroku

I've written a REST API on the express framework for node.js that works for requests from the js console in Chrome, and URL bar, etc. I'm now trying to get it working for requests from another app, on a different domain (CORS). The first request,…
Jamie Folsom
  • 1,287
  • 2
  • 10
  • 20
100
votes
7 answers

What is the proper way to use the node.js postgresql module?

I am writing a node.js app on Heroku and using the pg module. I can't figure out the "right" way to get a client object for each request that I need to query the database. The documentation uses code like this: pg.connect(conString, function(err,…
Philip
  • 4,128
  • 5
  • 31
  • 49
99
votes
6 answers

Share database between 2 apps in Heroku

I want to access the database of an app from another Heroku app. Is that possible in the shared database?
donald
  • 23,587
  • 42
  • 142
  • 223
99
votes
4 answers

How do I set up DNS for an apex domain (no www) pointing to a Heroku app?

I already added a custom domain to my Heroku app and it works with www.domain.com. I need to know how to set up the domain without www to resolve to the app, too. Here are my current DNS settings: $TTL 86400 @ IN SOA ns1.first-ns.de.…
mrks
  • 5,439
  • 11
  • 52
  • 74
98
votes
16 answers

Facebook App: localhost no longer works as app domain

I've been writing a game for Facebook using Rails and jQuery. Since I started using the Facebook Javascript SDK, using localhost as an app domain seemed to work just fine. I was able to test my game both locally and on Heroku. In the past day, it…
Ten Bitcomb
  • 2,316
  • 1
  • 25
  • 39
97
votes
3 answers

How to attach my repo to heroku app

I create a heroku app and then my machine crashed. I have a new machine. How do I attach my existing app to heroku app. When I visit heroku page the url for my app is like this git@heroku.com:myapp.git I can't do clone this app because I already…
Nick Vanderbilt
  • 1,757
  • 2
  • 17
  • 22
97
votes
12 answers

Error trying to install Postgres for python (psycopg2)

I tried to install psycopg2 to my environment, but I get the following error: (venv)avlahop@apostolos-laptop:~/development/django/rhombus-dental$ sudo pip install psycopg2 Downloading/unpacking psycopg2, Downloading psycopg2-2.5.2.tar.gz (685kB):…
Apostolos
  • 7,763
  • 17
  • 80
  • 150
96
votes
6 answers

How does "git push heroku master" know where to push to and how to push to a different repo?

When pushing to a repository hosted on Heroku one must execute the following command: git push heroku master What do heroku and master indicate in this command? How does git know where to push to? (the git path) Also, I didn't know I can use…
Sarah Wong
  • 961
  • 1
  • 7
  • 3
95
votes
14 answers

Multiple heroku accounts

I'm having trouble when working with multiple Heroku accounts on my computer. The thing is that it's worked great before by switching accounts with the heroku gem. But now (even though I've generated new SSH keys) it wont work. When I do a git push…
Erik
  • 981
  • 1
  • 7
  • 4
95
votes
4 answers

Pushing app to heroku problem

I am trying to push my app to heroku and I get the following message: $ heroku create Creating electric-meadow-15..... done Created http://electric-meadow-15.heroku.com/ | git@heroku.com:electric-meadow-1 5.git $ git push heroku master ! No…
goddamnyouryan
  • 6,854
  • 15
  • 56
  • 105
94
votes
6 answers

Heroku error: "Permission denied (public key)"

I keep getting this error. I am using Mac. I generated a key and added it to heroku using heroku config:add key="ssh-rsa blahblah=me@me.com" But this doesn't work. I keep getting the same error. Short of reinstalling ssh-keygen, what can I do about…
picardo
  • 24,530
  • 33
  • 104
  • 151
93
votes
5 answers

Property 'firebase' does not exist on type { production: boolean; }

So I was trying to build and deploy my Angular 4 app for production on both Firebase and Heroku, but I have come across the error as follows: ERROR in /Users/.../... (57,49): Property 'firebase' does not exist on type '{ production: boolean;…
93
votes
3 answers

Webpack for back-end?

I was just wondering, I started using Webpack for a new project and so far it's working fine. I almost would say I like it better than Grunt, which I used before. But now I'm quite confused how and or I should use it with my Express back-end? See,…
Erik van de Ven
  • 4,747
  • 6
  • 38
  • 80
92
votes
6 answers

Redis and Memcache or just Redis?

I'm using memcached for some caching in my Rails 3 app through the simple Rails.cache interface and now I'd like to do some background job processing with redis and resque. I think they're different enough to warrant using both. On heroku though,…
markquezada
  • 8,444
  • 6
  • 45
  • 52