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
1172
votes
15 answers

Why do people use Heroku when AWS is present? What distinguishes Heroku from AWS?

I'm a beginner RoR programmer who's planning to deploy my app using Heroku. Word from my other advisor friends says that Heroku is really easy, good to use. The only problem is that I still have no idea what Heroku does... I've looked at their…
Bryan
  • 11,925
  • 4
  • 15
  • 12
876
votes
9 answers

How to link a folder with an existing Heroku app

I have an existing Rails app on GitHub and deployed on Heroku. I'm trying to set up a new development machine and have cloned the project from my GitHub repository. However, I'm confused as to how to link this folder up to Heroku. Originally, I used…
Kevin Pang
  • 41,172
  • 38
  • 121
  • 173
856
votes
34 answers

Permission denied (publickey) when deploying heroku code. fatal: The remote end hung up unexpectedly

I'm attempting to deploy my code to heroku with the following command line: git push heroku master but get the following error: Permission denied (publickey). fatal: The remote end hung up unexpectedly I have already uploaded my public SSH key,…
vich
  • 11,836
  • 13
  • 49
  • 66
644
votes
39 answers

Heroku + node.js error (Web process failed to bind to $PORT within 60 seconds of launch)

I have my first node.js app (runs fine locally) - but I am unable to deploy it via heroku (first time w/ heroku as well). The code is below. SO doesn't let me write so much code, so I would just say that the running the code locally as well within…
user428900
  • 7,091
  • 6
  • 23
  • 18
555
votes
22 answers

How to see all the logs

I have a small app on heroku. Whenever I want to see the logs I go to the command line and do heroku logs That only shows me about 100 lines. Is there not a way to see complete logs for our application on heroku?
josh
  • 5,645
  • 3
  • 17
  • 7
474
votes
12 answers

How to push different local Git branches to Heroku/master

Heroku has a policy of ignoring all branches but 'master'. While I'm sure Heroku's designers have excellent reasons for this policy (I'm guessing for storage and performance optimization), the consequence to me as a developer is that whatever local…
Lawrence I. Siden
  • 9,191
  • 10
  • 43
  • 56
453
votes
61 answers

npm ERR cb() never called

I have a Node.js app hosted on Heroku. Every time I do a git push heroku I get the following error: Counting objects: 14, done. Delta compression using up to 6 threads. Compressing objects: 100% (12/12), done. Writing objects: 100% (12/12), 1.20…
Louise K
  • 4,741
  • 3
  • 16
  • 17
399
votes
12 answers

Should I check in folder "node_modules" to Git when creating a Node.js app on Heroku?

I followed the basic getting started instructions for Node.js on Heroku here: https://devcenter.heroku.com/categories/nodejs These instruction don't tell you to create a .gitignore node_modules, and therefore imply that folder node_modules should be…
Jason Griffin
  • 4,053
  • 3
  • 14
  • 7
383
votes
18 answers

How to empty a Heroku database

I'm working on a Ruby on Rails 3 webapp on Heroku. How do I empty the database?
user591338
337
votes
24 answers

Easy way to prevent Heroku idling?

In the Heroku free apps the dynos seem to keep idling - my app has very low traffic but it's also not really acceptable in my case that my users have to wait 20+ seconds to spin up a new dyno. Frankly, with that kind of wait, many will leave before…
sscirrus
  • 55,407
  • 41
  • 135
  • 228
296
votes
25 answers

'heroku' does not appear to be a git repository

When I try to push my app to Heroku I get this response: fatal: 'heroku' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. I have…
Tim
  • 3,191
  • 2
  • 16
  • 22
266
votes
11 answers

How to shutdown an app deployed on Heroku?

I have an app on Heroku which is being used by few users. However, I notice there are some data issues which I'd like to fix and stop the app in the mean time so users don't enter anything new. Is there a way to stop the app on Heroku rather than…
yuri
  • 2,851
  • 3
  • 18
  • 8
259
votes
12 answers

Heroku and GitHub: "Items could not be retrieved, Internal server error"

I simply want to connect to my GitHub account. When I do it, I get this error message as a small red pop up on the upper right side of the page: Items could not be retrieved, Internal server error.
Sylvain43
  • 2,617
  • 2
  • 4
  • 4
247
votes
5 answers

How to restart a rails server on Heroku?

Locally I just interrupt (ctrl-c) and then start it again. How do I do the same thing with an app on heroku?
Michael Durrant
  • 93,410
  • 97
  • 333
  • 497
242
votes
11 answers

Error: Cannot pull with rebase: You have unstaged changes

I have started collaborating with a few friends on a project & they use the heroku git repository. I cloned the repository a few days ago and they have since made some changes so I am trying to get the latest updates I ran the git pull --rebase…
user3597950
  • 9,201
  • 6
  • 26
  • 35
1
2 3
99 100