I plan to release some learnings from the last Node Knockout competition on this blog over the next couple of weeks.
Let’s start with something useful: Installing Heroku CLI without sudo
cd $HOME mkdir -p Downloads cd Downloads wget https://cli-assets.heroku.com/branches/stable/heroku-linux-amd64.tar.gz # for x86_64 CPU architecture mkdir -p ../bin/heroku-lib tar -xvzf heroku-linux-amd64.tar.gz -C ../bin/heroku-lib/ cd ../bin/heroku-lib/ ln -s $HOME/bin/heroku-lib/heroku/bin/heroku $HOME/bin/heroku # Could be that you have to expand $HOME echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
That snippet assumes, you are running on an x86_64 CPU (ask
uname -m if you
are not sure, what you use). You need to extend the
PATH environment variable
in the respective
rc file for shells other than bash.
I wrote this down, because I was unhappy with the official documentation on Heroku.
Hope it helps :)