How to configure Heroku on Ubuntu 16.04.3 x64

Written by xameeramir | Published 2018/02/04
Tech Story Tags: technology | ubuntu | heroku | linux | servers

TLDRvia the TL;DR App

credit: https://randomdrake.com/2012/10/15/deploying-an-existing-django-app-to-heroku-on-ubuntu-12-04/

Today, I purchased [Ubuntu](https://hackernoon.com/tagged/ubuntu) 16.04.3 x64 server running on DigitalOcean infrastructure. It’s not too different than the ones on premise:

Configuring Heroku is quite straight-forward. After ssh-ing, run the following commands with sudo:

wget https://cli-assets.heroku.com/heroku-cli/channels/stable/heroku-cli-linux-x64.tar.gz -O heroku.tar.gz

tar -xvzf heroku.tar.gz

mkdir -p /usr/local/lib /usr/local/bin

List the content of the current directory with ls. I found this output:

heroku-cli-v6.15.22–3f1c4bd-linux-x64 heroku.tar.gz

This output determines the value in the next step, use the first file name in the next command:

mv heroku-cli-v6.15.22-3f1c4bd-linux-x64 /usr/local/lib/heroku

ln -s /usr/local/lib/heroku/bin/heroku /usr/local/bin/heroku

And that’s it.


Published by HackerNoon on 2018/02/04