Questions tagged [heroku-cli]

Use this tag for questions associated with the Heroku Command Line Interface (CLI).

This tag is for the Heroku CLI.

711 questions
2
votes
2 answers

Heroku Login timing out on Win64

I have installed the Heroku CLI for Win 64 platform and am using Git Bash. When entering the command heroku login or heroku login -i the program asks for any key to be pressed to open up the browser yet the program times out and throws an error…
Jon Stacy
  • 21
  • 3
2
votes
1 answer

How do PM2 commands on Heroku?

I'm trying to use pm2 on Heroku. When I run: heroku run bash and do a pm2 ls I get an empty list. When I run: heroku ps:exec I get "There was an error connecting to the dyno!" So, how can I use pm2 commands on Heroku, e.g. l: pm2 reload all, pm2…
Remah Amr
  • 70
  • 5
2
votes
1 answer

Heroku | Node.js | Exception when debugging remotely

I have express.js REST API server on Heroku. I am trying to debug an error remotely. But, I receive below exception. The steps I tried to debug remote server are mentioned after this exception section. Can someone please help me how can I debug…
2
votes
0 answers

Unable to install sodium to Heroku

I've tried running npm install sodium in the Heroku console but it just returns npm ERR! code 1 npm ERR! path /app/node_modules/sodium npm ERR! command failed npm ERR! command sh -c node install.js --preinstall npm ERR! Static libsodium was not…
FinallyComplete
  • 124
  • 1
  • 11
2
votes
0 answers

Heroku dockerfile rm command doesn't work

when I build an app with docker the command RUN rm -f something.txt in Dockerfile works fine but using the same command with heroku (heroku container:push web -a ...) doesn't actually delete the file. No error is produced anyway. Any…
L0d0v1c
  • 31
  • 4
2
votes
2 answers

Heroku CLI Login - Error Code: mfa_required

I’ve been trying to login to HEROKU CLI on a headless Ubuntu. So, I don’t have a chance to open a browser. That’s why, I need to login with credential or any other method but there are only two login options which are browser, credentials. Is there…
Enes Cinar
  • 41
  • 1
  • 5
2
votes
1 answer

Heroku - Login not working on site with an auth loop

I have tried a few things such as resetting my password, entering everything in manually, trying all my accounts, clearing my cookies and even trying a fresh browser. However, I sadly cannot login to heroku.com The page either refreshes itself when…
2
votes
0 answers

ClassNotFoundException after running heroku local web; unsure what to include in Procfile?

My Procfile looks like this: web: java $JAVA_OPTS -cp target/classes:target/dependency/* com.Main My directory structure looks like this: src/java/com/Main.java. I'm not even sure how to change my Procfile so it works correctly. The…
xwins33
  • 21
  • 2
2
votes
1 answer

Having Trouble Enabling pg_stat_statements to Enable Heroku pg:outliers

I am trying to run the pg:outliers command in the Heroku command line tools and I am getting the following error: ▸ pg_stat_statements extension need to be installed in the public schema first. ▸ You can install it by running: ▸ ▸ …
jfredson
  • 171
  • 12
2
votes
2 answers

How to install the Heroku CLI without HomeBrew on MacOS

I would like to install the Heroku CLI in my Macbook without using HomeBrew. Is there a way to do this? Perhaps by using a native command via terminal? Or some other way that does not depend on another bit of software? I have searched online but…
2
votes
1 answer

Heroku Pipelines: Configuration from app.json is being ignored

I am trying to setup Heroku Pipelines and would like to configure my enviroment and build process using app.json. But my app.json is being ignored. That's how my repo looks like: - Dir1 - Dir2 - ... - app.json - some other…
hendrikschneider
  • 1,696
  • 1
  • 14
  • 26
2
votes
2 answers

Heroku: heroku is not recognized as an internal or external command, operable program or batch file

As you can probably tell by the title, I am having difficulty with Heroku. Whenever I run heroku --version in the Command Line, I receive the error 'heroku' is not recognized as an internal or external command, operable program or batch file. I have…
Jacob Lee
  • 4,405
  • 2
  • 16
  • 37
2
votes
0 answers

failed to push some refs to 'https://git.heroku.com/'

> C:\xampp\htdocs\starter> git push heroku master To https://git.heroku.com/*********.git ![remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/*********.git' Failure to push to…
2
votes
1 answer

Failed to deploy multi-container app to Heroku via Travis CI

For the past 2 days, I have been consistently trying out different methods of deploying my multi-container app to Heroku via Travis CI. Heroku shows a weird error when I deploy my application from Travis CI. Here's my docker-compose.yml: version:…
Mihir Joshi
  • 426
  • 5
  • 14
2
votes
3 answers

How can I retrieve Heroku application id?

I am being asked for heroku app id (the app123@heroku.com) by 3rd party support. I am quite sure there was some way to do get it, but I don't see it know. It's not featured in heroku info even in the more verbose --json mode. How can I retrieve it?
Almad
  • 5,753
  • 7
  • 35
  • 53