How to Download Heroku on mac - heroku

I have been trying to download Heroku software to upload the rails app I made but every time I try to download it, it says it failed.
And what version of heroku should I be downloading?

if you have installed node and npm already, try this
npm install -g heroku
if you're using Homebrew, try this
brew tap heroku/brew && brew install heroku
once the installation is done, issue this to verify whether you've successfully installed Heroku on your Mac
heroku --version

You need to set up your local workstation with the Heroku command-line client and the Git revision control system by installing the Heroku Toolbelt. Check out this link to download Heroku toolbelt.

Heroku is a hosting service and there is nothing to download. You can sign up at Heroku.com and there are instructions on the site for how to upload your app.

Related

How to install SVN at heroku?

I have a project that needs SVN to install some packages. Specifically, I depend on node-steam-resources and its installation instructions say
Run npm install seishun/node-steam-resources. It fetches the Steam resources and requires svn.
On localhost it works after installing SVN console.
But how to do the same on Heroku?
You'll need to use the apt buildpack to install OS-level packages in addition to your existing buildpack (presumably heroku/nodejs).
Create a new file called Aptfile in the root of your repository. This is where you will define any additional Ubuntu packages you require.
Edit that file so it looks like this:
subversion
Add and commit that file.
Configure your Heroku app to use the correct buildpacks:
First, set your Node.js buildpack explicitly:
heroku buildpacks:set heroku/nodejs
Then add the apt buildpack:
heroku buildpacks:add --index 1 heroku-community/apt
Run heroku buildpacks to make sure you see both buildpacks, with the apt buildpack showing up first and the Node.js buildpack showing up second.
Finally, redeploy your application and watch the build output. You should see the subversion package get installed, then your Node.js dependencies get installed.

How do I install Heroku CLI on Termux?

Termux is a Linux terminal emulator for Android. I want to install the Heroku CLI to be able to manage my Heroku apps on the go, I tried typing heroku to prompt the error message and link to the right package, but it gives me:
No command 'heroku' found, did you mean:
Command 'heyu' from package 'heyu'
I tried installing the CLI from the official website, but that didn't work out as well. What should I do?
Use the npm package heroku, its the complete CLI as what you find from the official website. Simply do
npm i -g heroku
Alternatively, you may use yarn. Install yarn by doing
pkg install yarn
and then install the Heroku CLI by
yarn add global heroku-cli#latest

The heroku cli fails

I run
heroku logs
and get
'ENOCOMMANDS': semver has no commands. Is this a CLI plugin?
Is there a problem with the current version of heroku? I have searched for both ENOCOMMANDS and semver with no useful results.
I had the same issue. I fixed it by uninstalling and then installing heroku like this...
$brew uninstall --force heroku
$rm -rf ~/.local/share/heroku ~/.config/heroku ~/Library/Caches/heroku
$brew install heroku

error: cannot install "heroku": snap not found

I am following the instructions from official heroku website to install heroku on my ubuntu 14.04.
First I installed snapd on ubuntu and then tried to install heroku by running:
sudo snap install heroku
But I am getting following error
error: cannot install "heroku": snap not found
I posted this question on askubuntu but it wasn't of much help. Could somebody please help how can I fix this issue ?
To install heroku in all currently supported versions of Ubuntu open the terminal and type:
sudo snap install --classic heroku
This installs the heroku snap package successfully, and it is the recommended way of installing Heroku CLI in Ubuntu at the Heroku Dev Center website. When this was posted sudo snap install --classic heroku installs the latest version of Heroku.

Migrating from a Shared Database to Heroku Postgres /

ON MAC OS X 1.7.2
I tried following the instructions https://devcenter.heroku.com/articles/migrating-from-shared-database-to-heroku-postgres
So I tried running the command on my-app:
$ heroku addons:add heroku-postgresql:dev -a my-app
-----> Adding heroku-postgresql:dev to test-biowatts... failed
! You're running an outdated version of the Heroku gem/toolbelt that cannot perform the requested action. Please update your client and try again.
So I tried to update Heroku
$ heroku update
! update is not a heroku command. See 'heroku help'.
Where
$ heroku version
heroku-gem/2.4.0
QUESTION UPDATE 1 - Heroku update now gives a different message
$ heroku update
! `heroku update` is only available from Heroku Toolbelt.
! Download and install from https://toolbelt.heroku.com
so I downloaded and installed toolbelt but the heroku update still gives the same message
QUESTION UPDATE 2 - Removed heroku installed TOOLBELT - RESOLVED
sudo rm -rf /usr/local/heroku
sudo rm -rf /usr/bin/heroku
gem uninstall heroku
then installed https://toolbelt.heroku.com/
Restarted terminal
AND IT WORKED!
Cheers,
joel
Have you tried gem update heroku?
If you are using Mac OSX mountain lion. Maybe you should better use heroku toolbelt. I had almost same issue, and it fixed after I installed Heroku toolbelt.

Resources