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
92
votes
6 answers

How to view remote Git revision on Heroku

For deploying to Heroku, I use git push heroku master. But how do I see which revision I pushed up to heroku? (I'm often in doubt if I pushed the recent version up) For those not familiar with it, Heroku's create script generates a remote git…
Jesper Rønn-Jensen
  • 106,591
  • 44
  • 118
  • 155
90
votes
21 answers

'git push heroku master' is still asking for authentication

I have executed: $ heroku login But when I try to push, I'm still asked for authentication: $ git push heroku master Username for 'https://git.heroku.com': Password for 'https://@git.heroku.com': Then I get a WARNING: Do not…
Rea G
  • 1,041
  • 1
  • 9
  • 11
90
votes
1 answer

Unicorn exit timeout on Heroku after trapping TERM and sending QUIT

I am receiving R12 Exit Timeout errors for a Heroku app running unicorn and sidekiq. These errors occur 1-2 times a day and whenever I deploy. I understand that I need to convert the shutdown signals from Heroku for unicorn to respond correctly, but…
middkidd
  • 1,051
  • 10
  • 9
89
votes
7 answers

sql.h not found when installing PyODBC on Heroku

I'm trying to install PyODBC on Heroku, but I get fatal error: sql.h: No such file or directory in the logs when pip runs. How do I fix this error?
shashi kanth
  • 1,031
  • 1
  • 8
  • 7
86
votes
5 answers

Heroku: web dyno vs. worker dyno? How many/what ratio do I need?

I was curious as to what the difference between web and worker dynos is on Heroku. They give a one sentence explanation on their pricing page, but this just left me confused. How do I know how many to pick of each? Is there a ratio I should aim for?…
varatis
  • 14,494
  • 23
  • 71
  • 114
86
votes
19 answers

Heroku + gunicorn not working (bash: gunicorn: command not found )

I successfully install gunicorn: remote: -----> Removing .DS_Store files remote: -----> Python app detected remote: -----> Installing dependencies with pip remote: Collecting gunicorn==19.0.0 (from -r requirements.txt (line 1)) remote: …
maxko87
  • 2,892
  • 4
  • 28
  • 43
86
votes
14 answers

git push heroku master says "Everything up-to-date", but the app is not current

I have an app on Heroku that is running old code. I've made a small change and committed the change. I then ran git push heroku master It'll say Fetching repository, done. Everything up-to-date But if I go and look at the app, it's all old code.…
Darkmatter5
  • 1,189
  • 3
  • 12
  • 19
86
votes
7 answers

Deploying to Heroku using git on bitbucket

I want to host my source on bitbucket using git because I obviously get a free private repo and I want to host my app on heroku using the source code from bitbucket. Can i do it using the github client and heroku toolbelt. Will it work? Github is…
Wasswa Samuel
  • 2,139
  • 3
  • 30
  • 54
86
votes
5 answers

Staging instance on Heroku

I'd like to be able to push code to dev.myapp.com for testing and then to www.myapp.com for production use. Is this possible with Heroku?
Tom Lehman
  • 85,973
  • 71
  • 200
  • 272
85
votes
21 answers

Collectstatic error while deploying Django app to Heroku

I'm trying to deploy a Django app to Heroku, it starts to build, download and installs everything, but that's what I get when it comes to collecting static files $ python manage.py collectstatic --noinput remote: Traceback (most recent call…
Stefano De Rosso
  • 1,309
  • 1
  • 14
  • 27
85
votes
6 answers

git push heroku master Permission denied (publickey). fatal: The remote end hung up unexpectedly

Please excuse a bit of frustration, which I will try to keep in check since Heroku is using SO as their customer support (which I think it shoddy to say the least). For the last five hours I have been trying to get an application to publish, but…
Travis Jensen
  • 5,362
  • 3
  • 36
  • 40
85
votes
10 answers

Is it possible to upload a simple html and javascript file structure to heroku?

I'm trying to deploy an open source project of mine to heroku, it is by necessity very simple with just static html and javascript. But do they not support static sites? I'd rather not make it a Sinatra project if I don't plan on ever using…
Jeremy Smith
  • 14,727
  • 19
  • 67
  • 114
82
votes
5 answers

Heroku: How can you check Heroku Error Logs?

I've got a PHP application on a free Heroku account. Today for no apparent reason I got Heroku's Application Error screen for about an hour. No downtimes on Heroku's status report page. I'd like to check the logs to figure out why the application…
Allen S
  • 3,471
  • 4
  • 34
  • 46
81
votes
13 answers

How to remove a Github Environment

My question is about cleaning up the "Environments" tab on a Github repository. I previously deployed via Heroku, using automatic deployment from two separate Github branches (one for staging, one for production). This created a tab "Environments"…
mathiscode
  • 1,509
  • 3
  • 13
  • 10
80
votes
10 answers

Getting 'DatabaseOperations' object has no attribute 'geo_db_type' error when doing a syncdb

I'm attempting to run heroku run python manage.py syncdb on my GeoDjango app on Heroku, but I get the following error: AttributeError: 'DatabaseOperations' object has no attribute 'geo_db_type' All of my research has yielded the same solution: make…
Gady
  • 4,935
  • 8
  • 38
  • 48