Skip to main content

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.

Filter by
Sorted by
Tagged with
879 votes
9 answers
290k views

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 ...
Kevin Pang's user avatar
  • 41.3k
856 votes
34 answers
225k views

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 ...
650 votes
39 answers
395k views

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 ...
user428900's user avatar
  • 7,171
566 votes
22 answers
410k views

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 ...
josh's user avatar
  • 5,755
474 votes
12 answers
178k views

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 ...
Lawrence I. Siden's user avatar
456 votes
62 answers
691k views

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/...
Louise K's user avatar
  • 4,771
403 votes
12 answers
197k views

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 instructions don't tell you to create a .gitignore node_modules, and ...
Jason Griffin's user avatar
382 votes
18 answers
174k views

How to empty a Heroku database

I'm working on a Ruby on Rails 3 webapp on Heroku. How do I empty the database?
user avatar
337 votes
24 answers
148k views

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. ...
sscirrus's user avatar
  • 56.3k
299 votes
26 answers
235k views

'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 ...
Tim's user avatar
  • 3,221
274 votes
12 answers
501k views

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 ...
user3597950's user avatar
  • 9,811
268 votes
11 answers
184k views

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 ...
yuri's user avatar
  • 2,871
258 votes
12 answers
97k views

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's user avatar
  • 2,607
247 votes
5 answers
158k views

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's user avatar
222 votes
6 answers
112k views

Connect to a heroku database with pgadmin

I would like to manage my Heroku database with pgadmin client. By now, I've been doing this with psql. When I use data from heroku pg:credentials to connect de DB using pgadmin, I obtain: An error ...
Tomas Romero's user avatar
  • 8,598
218 votes
10 answers
300k views

setting an environment variable in virtualenv

I have a Heroku project that uses environment variables to get its configuration, but I use virtualenv to test my app locally first. Is there a way to set the environment variables defined on the ...
Mahmoud Hanafy's user avatar
215 votes
18 answers
174k views

Rails: How to reference images in CSS within Rails 4

There's a strange issue with Rails 4 on Heroku. When images are compiled they have hashes added to them, yet the reference to those files from within CSS don't have the proper name adjusted. Here's ...
Nick ONeill's user avatar
  • 7,361
213 votes
5 answers
34k views

How to hide databases that I am not allowed to access

When I connect to my Heroku - Postgresql database via pgAdmin3, It lists all the tables (about 2600). Every time I open the pgAdmin3 I have to find my own database. Is there a way to hide databases ...
alioguzhan's user avatar
  • 7,837
203 votes
4 answers
43k views

Make Heroku run non-master Git branch

I have a project hosted on Heroku and it's gotten to the point where I want to make an alternate test server (so I can test Heroku workers without messing up production). I have already set up my ...
AlexQueue's user avatar
  • 6,521
197 votes
4 answers
93k views

How to customize a requirements.txt for multiple environments?

I have two branches, Development and Production. Each has dependencies, some of which are different. Development points to dependencies that are themselves in development. Likewise for Production. I ...
Charles R's user avatar
  • 18.8k
197 votes
9 answers
410k views

Heroku "psql: FATAL: remaining connection slots are reserved for non-replication superuser connections"

I'm developing an app on Heroku with a Postgresql backend. Periodically, I get this error message when trying to access the database, both from the CLI and from loading a page on the server: psql: ...
nathancahill's user avatar
  • 10.7k
191 votes
15 answers
194k views

How to solve error "Missing `secret_key_base` for 'production' environment" (Rails 4.1)

I created a Rails application, using Rails 4.1, from scratch and I am facing a strange problem that I am not able to solve. Every time I try to deploy my application on Heroku I get an error 500: ...
Paolo Laurenti's user avatar
190 votes
5 answers
187k views

Getting "Warning: unprotected private key file!" error message while attempting to import SSH key [closed]

Can someone explain this to me please and what I can do to sort out my permissions issue. It seems to be stopping me from getting the authenticity of host heroku and fixing my keys issues. david@...
David's user avatar
  • 2,039
189 votes
7 answers
95k views

What does "./bin/www" do in Express 4.x?

I just started to learn about Express 4.0 in my Node.js app, and I found that it generated ./bin/www file, on which only the application server and port settings are written and everything others like ...
Blaszard's user avatar
  • 31.7k
186 votes
6 answers
95k views

Heroku/devise - Missing host to link to! Please provide :host parameter or set default_url_options[:host]

I am trying to push my app on heroku. I am still in dev. I use devise with the confirmable module. When I try to add a user with the heroku console I got this error: Missing host to link to! Please ...
benoitr's user avatar
  • 6,095
181 votes
4 answers
204k views

Get Error: You must install at least one postgresql-client-<version> package when deploy to heroku

sdilshod@sdilshod-Lenovo-B590:~/webapp/saturn$ heroku run rake db:migrate Running `rake db:migrate` attached to terminal... up, run.6194 DEPRECATION WARNING: You have Rails 2.3-style plugins in ...
dilshod's user avatar
  • 2,011
176 votes
5 answers
109k views

Heroku free account limited?

Currently, I am running wordpress as my blog engine on free hosting, but I'm planning to move to use git-based blog engine(Jekyll, Toto) on Ruby platform. Then I see Heroku provides free account ...
Samnang's user avatar
  • 5,586
174 votes
14 answers
117k views

Getting "[archiver] unsupported version (1.13) in file header" when running pg_restore

I just upgraded to postgres 10.2 on mac os which matches 10.2 on heroku. I'm trying to download a copy of the database and restore it locally. Before the upgrade the restore would work fine. I run ...
Mark Swardstrom's user avatar
169 votes
6 answers
33k views

renamed heroku app from website, now it's not found

After renaming my heroku app from the heroku website, whenever I cd to its directory in a terminal and run any heroku command, I get App not found. Does anybody know of a way to remedy this?
Connor's user avatar
  • 4,168
168 votes
37 answers
220k views

Heroku deployment error H10 (App crashed)

I have a RoR app working on my local computer, but when I send it to heroku, it crashes. The error log gives an error H10 & says: 2012-11-21T15:26:47+00:00 app[web.1]: from /app/vendor/...
bskool's user avatar
  • 2,078
168 votes
8 answers
81k views

Redeploy Heroku app without code changes

I would like to deploy a Heroku app which will be done ideally using git push -u heroku master. However this will only work if there are any pending commits to be pushed to master. How can I ...
nehem's user avatar
  • 13.4k
161 votes
10 answers
82k views

Recompile Heroku slug without push or config change

I'm wondering if there is a way to force Heroku to recompile the slug without pushing new commits and/or updating the config variables. Why would I want to do this?: I am using the Cedar stack on ...
Nathan's user avatar
  • 7,966
159 votes
5 answers
131k views

How to see files and file structure on a deployed Heroku app

My client app that is deployed on Heroku allows the user to upload images onto Heroku. I wanted to test out a change I made to delete images, so I need a way to see the state of the folder structure ...
andy mccullough's user avatar
157 votes
25 answers
215k views

H14 error in heroku - "no web processes running"

error H14 happen while deploying to heroku this is my procfile: web: gunicorn -w 4 -b 0.0.0.0:$PORT -k gevent main:app log on heroku: 2017-01-23T10:42:58.904480+00:00 heroku[router]: at=error code=...
Ron Miles's user avatar
  • 1,593
155 votes
8 answers
22k views

Rails 2.3-style plugins and deprecation warnings running task in Heroku

I'm upgrading to Rails 3.2, and running rake db:migrate gives me several errors of the form: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will ...
fearless_fool's user avatar
148 votes
14 answers
107k views

Heroku 'Permission denied (publickey) fatal: Could not read from remote repository' woes

I've searched around for many hours on end looking to a solution to my seemingly easy-to-fix problem. It's not that my search turned up nothing, it's that my search turned up so many different ...
thebradbain's user avatar
  • 3,139
146 votes
5 answers
94k views

Heroku/GoDaddy: send naked domain to www [closed]

I am trying to figure out how to get the naked domain for my website to redirect to the www domain. I am using Heroku and have the domain from GoDaddy. Because of Heroku, my A records are already ...
Andrew Latham's user avatar
145 votes
34 answers
286k views

First Heroku deploy failed `error code=H10`

I deployed my app to Heroku. It's a node.js + express + socket.io app and this is the package.json file { "name": "game_test", "author": "Ilya", "description": "A test app for our board game", ...
ilyo's user avatar
  • 36.2k
144 votes
6 answers
194k views

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 ...
paranoidhominid's user avatar
143 votes
16 answers
64k views

How do I clear stuck/stale Resque workers?

As you can see from the attached image, I've got a couple of workers that seem to be stuck. Those processes shouldn't take longer than a couple of seconds. I'm not sure why they won't clear or how to ...
Shpigford's user avatar
  • 25.1k
143 votes
5 answers
49k views

How can I deploy/push only a subdirectory of my git repo to Heroku?

I have a project that uses Serve and is version controlled using Git. Serve creates an output folder with static files that I want to deploy to Heroku. I don't want to deploy the Serve project itself ...
Olivier Lacan's user avatar
139 votes
27 answers
190k views

heroku: src refspec master does not match any

I'm hosting on Heroku. When I push: git push master Heroku I get the error: error: src refspec master does not match any. error: failed to push some refs to '[email protected]: etc ...'
Mark's user avatar
  • 2,011
135 votes
21 answers
159k views

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 ...
Pedro's user avatar
  • 1,192
135 votes
5 answers
62k views

What exactly is Heroku?

I just started learning Ruby on rails and I was wondering what Heroku really is? I know that its a cloud that helps us to avoid using servers? When do we actually use it?
user1452803's user avatar
  • 1,479
134 votes
10 answers
181k views

How to import a text file on AWS S3 into pandas without writing to disk

I have a text file saved on S3 which is a tab delimited table. I want to load it into pandas but cannot save it first because I am running on a heroku server. Here is what I have so far. import io ...
alpalalpal's user avatar
  • 1,613
131 votes
10 answers
46k views

Cannot push to Heroku because key fingerprint

I am new to Rails, and I was trying to deploy a very simple app to Heroku. This is the second app that I deploy, and the first one I was able to do it just fine. However I am having some issues with ...
mre's user avatar
  • 1,393
127 votes
9 answers
138k views

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's user avatar
  • 1,271
127 votes
13 answers
76k views

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, ...
Vasseurth's user avatar
  • 6,456
127 votes
11 answers
157k views

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: "...
kaasdude's user avatar
  • 1,436
120 votes
13 answers
102k views

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's user avatar
  • 5,190

1
2 3 4 5
873