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
127
votes
20 answers

Bundler: You must use Bundler 2 or greater with this lockfile

I'm working with heroku and every time I try to push my app this message shows out: remote: Compressing source files... done. remote: Building source: remote: remote: -----> Ruby app detected remote: remote: ! remote: ! You must use Bundler…
Pedro
  • 1,352
  • 2
  • 10
  • 22
126
votes
13 answers

Change from SQLite to PostgreSQL in a fresh Rails project

I have a rails app that's databases are in SQLite (The dev and production). Since I am moving to heroku, I want to convert my database to PostgreSQL. Anyways, I heard that the local, development, database does not need to be changed from SQLite, so…
Vasseurth
  • 6,354
  • 12
  • 53
  • 81
126
votes
9 answers

Heroku: How to change a Git remote on Heroku

I do not want to upload my app to the wrong domain. How can I change the git master branch on git?
Jon
  • 1,261
  • 2
  • 9
  • 3
120
votes
13 answers

Remote connect to clearDB heroku database

How can i perform a remote connect to ClearDB MySQL database on heroku using for example MySQL Query Browser. Where to get url, port, login and password?
roman
  • 5,100
  • 14
  • 44
  • 77
120
votes
6 answers

Defining an array as an environment variable in node.js

I have an array that I pull data from. festivals = ['bonnaroo', 'lollapalooza', 'coachella'] Since I'm using heroku, it may be better to replace it with an environment variable, but I'm not sure how to do that. Is using a JSON string as an…
paranoidhominid
  • 1,379
  • 2
  • 8
  • 14
119
votes
15 answers

What text editor is available in Heroku bash shell?

I'm trying to update httpd.conf in my Cedar-based Heroku app. I got to my Heroku bash with heroku run bash and found the conf dir under apache. But when I try to open any editor vi, vim, or emacs, I can't find any of these programs. How do you…
Dave Thomas
  • 1,367
  • 2
  • 10
  • 17
118
votes
5 answers

Why are my basic Heroku apps taking two seconds to load?

I created two very simple Heroku apps to test out the service, but it's often taking several seconds to load the page when I first visit them: Cropify - Basic Sinatra App (on github) Textile2HTML - Even more basic Sinatra App (on github) All I did…
Lance
  • 75,200
  • 93
  • 289
  • 503
117
votes
10 answers

How to use environment variables in package.json

Because we don't want sensitive data in the project code, including the package.json file, using environment variables would be a logical choice in my opinion. Example package.json: "dependencies": { "accounting": "~0.4.0", "async":…
kaasdude
  • 1,336
  • 2
  • 8
  • 13
110
votes
13 answers

Heroku push rejected, no Cedar-supported app detected

I'm creating a Rails app with Rails 3.1.3: git init git remote add heroku git add . git commit -a -m "First commit" git push heroku master Got: Counting objects: 102, done. Delta compression using up to 4 threads. Compressing…
WHITECOLOR
  • 24,996
  • 37
  • 121
  • 181
110
votes
13 answers

Heroku NodeJS http to https ssl forced redirect

I have an application up and running on Heroku with Express.js on Node.js with https. How do I identify the protocol to force a redirect to https with Node.js on Heroku? My app is just a simple http-server, it doesn't (yet) realize Heroku is sending…
Derek Bredensteiner
  • 2,906
  • 4
  • 23
  • 13
109
votes
7 answers

Heroku: Cannot run more than 1 Free size dynos

I was trying to run heroku run rake db:migrate And was getting the error Cannot run more than 1 Free size dynos. See below for how to fix...
Andrew
  • 2,829
  • 3
  • 22
  • 19
109
votes
4 answers

Set up Heroku and GoDaddy?

I am trying to get a domain name I bought through GoDaddy to work with my Heroku hosted site. How do I configure my domain name to work with Heroku?
allegutta
  • 5,626
  • 10
  • 38
  • 56
107
votes
7 answers

Understanding Heroku server status 143

I'm wondering about Heroku server status and can't find any documentation about this topic. Example: Process exited with status 143 Can anyone explain this example? And where would I find resources for future reference?
Tien Nguyen
  • 4,298
  • 9
  • 30
  • 44
105
votes
7 answers

How to configure heroku application DNS to Godaddy Domain?

I have created a heroku application and wants to give domain to it from godaddy.com. I have configured all three hosts provided by heroku but now I am getting error saying: Heroku | No such app There is no app configured at that hostname. Perhaps…
Arpit Vaishnav
  • 4,739
  • 6
  • 39
  • 57
103
votes
33 answers

failed to push some refs to git@heroku.com

I am getting this error when I am trying to push to the Heroku repository. I've already set autocrlf = false in gitconfig but this problem is still there. I have also tried this solution here but it does not work. Is it possible that git is still…
Maven
  • 14,587
  • 42
  • 113
  • 174