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

What is the difference between Workers and Threads in Puma

What is the difference between a puma worker and a puma thread in context of a heroku dyno? What I know (please correct me if I am wrong): Thin is not concurrent, so a web process can only do one request at a time In unicorn, I know I can have…
Nick Ginanto
  • 31,090
  • 47
  • 134
  • 244
79
votes
6 answers

PGError: ERROR: permission denied for relation (when using Heroku)

I've recently gone through the database migration process as outlined here: https://devcenter.heroku.com/articles/migrating-from-shared-database-to-heroku-postgres Now I'm seeing a number of errors in the logs like this: PGError: ERROR: permission…
suttree
  • 1,303
  • 2
  • 10
  • 8
78
votes
1 answer

Heroku truncates HTTP responses?

I am running a Flask/Gunicorn Python app on a Heroku Cedar dyno. The app returns JSON responses to its clients (it's an API server, really). Once in a while clients get 0-byte responses. It's not me returning them, however. Here is a snippet of my…
Nitzan Shaked
  • 13,460
  • 5
  • 45
  • 54
78
votes
3 answers

How to deploy local MySQL database to Heroku

I'm new to using Heroku and I have a Ruby/Sinatra app in which I plan on using a MySQL database as the main data store. However, I do not want to write results directly to the database on Heroku. Instead, I want to write the results to a local…
Ken
  • 1,498
  • 2
  • 12
  • 19
77
votes
16 answers

Heroku does NOT compile files under assets pipelines in Rails 4

Everything goes well in local machine with assets pipeline in Rails 4 and Ruby 2.0. But when deploying to heroku, it is shown that: -----> Preparing app for Rails asset pipeline Running: rake assets:precompile I, [2013-03-12T03:28:29.908234…
aquajach
  • 2,548
  • 2
  • 23
  • 29
76
votes
8 answers

Setting the port for node.js server on Heroku

I launched a node.js server with the following line to set the port: app.set('port', process.env.PORT || 8080); This means that, it should either read the PORT env variable or default to 8080, as it does when it's run locally. Neither of them is…
Crocodile
  • 5,724
  • 11
  • 41
  • 67
75
votes
9 answers

Automated heroku deploy from subfolder

I know you can deploy automatically to heroku from github, but I haven't found a way to only push a subfolder from github to heroku. From the command-line I know it is possible to do this with: git subtree push --prefix heroku…
Divino Neto
  • 798
  • 1
  • 6
  • 8
75
votes
9 answers

Can't push to the heroku

I was pushing the current git repository into the heroku. That online application was developed using Scala and IntelliJ. And I don't know how to fix this error. $ git push heroku master Counting objects: 3, done. Delta compression using up to 4…
이국화
  • 809
  • 1
  • 9
  • 8
75
votes
4 answers

Foreman: Use different Procfile in development and production

I have a homemade Sinatra application for which I intend to use Heroku to host it. I use foreman and shotgun in development, with the following Procfile: web: shotgun config.ru -s thin -o 0.0.0.0 -p $PORT -E $RACK_ENV It works great with both…
Arnaud Leymet
  • 5,995
  • 4
  • 35
  • 51
74
votes
14 answers

Can't install psycopg2 with pip in virtualenv on Mac OS X 10.7

I am following Heroku's tutorial to deploy a Django app: http://devcenter.heroku.com/articles/django#prerequisites. Everything is working fine until I get to this part: $ pip install Django psycopg2 I can install Django by itself, but the probelm…
WarAndPiece
  • 1,007
  • 1
  • 10
  • 10
74
votes
9 answers

PostgreSQL GROUP BY different from MySQL?

I've been migrating some of my MySQL queries to PostgreSQL to use Heroku. Most of my queries work fine, but I keep having a similar recurring error when I use group by: ERROR: column "XYZ" must appear in the GROUP BY clause or be used in an…
holden
  • 13,471
  • 22
  • 98
  • 160
74
votes
4 answers

how to execute a .sql script on heroku?

I have a .sql file with a bunch of insert commands that I want to execute on my postgres database on heroku. But I don't know how to do it:- If I had access to postgres console I'd type the following: psql -h localhost -d database -U username -f…
Byron Singh
  • 1,408
  • 1
  • 13
  • 15
74
votes
2 answers

Will UUID as primary key in PostgreSQL give bad index performance?

I have created an app in Rails on Heroku using a PostgreSQL database. It has a couple of tables designed to be able to sync with mobile devices where data can be created on different places. Therefor I have a uuid field that is a string storing a…
thejaz
  • 2,763
  • 2
  • 26
  • 40
73
votes
3 answers

What is Procfile? and Web and Worker

Is it necessary to give 'worker' information in Procfile? If yes then what it is actually? I have already added web: node server/server.js detail in the Procfile.
Maulik Suchak
  • 1,028
  • 1
  • 8
  • 23
73
votes
3 answers

Installing PostgreSQL on Ubuntu for Ruby on Rails

I currently have Ruby on Rails installed via RVM in Ubuntu 12.04. The default database is set up in SQLite3, but I'd like to switch to PostgreSQL for the purposes of pushing to Heroku. How can I accomplish this?
Nick
  • 9,493
  • 8
  • 43
  • 66