IoT Zone is brought to you in partnership with:

I have been a programmer since I was a young child in the Gifted and Talent Program in Rutherford, NJ back in 1979. I started programming on Commodore PETs – 4 bit. And then Apple IIs, Commodore 64s and some others. Basic, then Pascal, Fortran, C, C++, Java, JavaScript and more. I am a Senior Field Engineer with Pivotal. Tim is a DZone MVB and is not an employee of DZone and has posted 59 posts at DZone. You can read more from them at their website. View Full User Profile

Get Heroku on Your Raspberry Pi

  • submit to reddit


pi@raspberrypi /mnt/usb1 $ wget -qO- | sh
This script requires superuser access to install apt packages.
You will be prompted for your password by sudo.
--2013-02-01 06:47:51--
Resolving (,,, ...
Connecting to (||:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1737 (1.7K) [application/octet-stream]
Saving to: `STDOUT'

100%[===================================================================================================================================================>] 1,737

2013-02-01 06:47:57 (1023 KB/s) - written to stdout [1737/1737]

Hit wheezy InRelease
Ign ./ InRelease
Get:1 wheezy InRelease [12.5 kB]
Get:2 ./ Release.gpg [490 B]
Hit wheezy/main armhf Packages
Get:3 ./ Release [1,673 B]
Get:4 wheezy/main armhf Packages [7,403 kB]
Get:5 ./ Packages [1,045 B]
Ign ./ Translation-en_US
Ign ./ Translation-en
Ign wheezy/main Translation-en_US
Ign wheezy/main Translation-en
Get:6 wheezy/contrib armhf Packages [23.3 kB]
Get:7 wheezy/non-free armhf Packages [47.8 kB]
Get:8 wheezy/rpi armhf Packages [14 B]
Ign wheezy/contrib Translation-en_US
Ign wheezy/contrib Translation-en
Ign wheezy/main Translation-en_US
Ign wheezy/main Translation-en
Ign wheezy/non-free Translation-en_US
Ign wheezy/non-free Translation-en
Ign wheezy/rpi Translation-en_US
Ign wheezy/rpi Translation-en
Fetched 7,489 kB in 1min 13s (103 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  foreman heroku libruby1.9.1 libyaml-0-2 ruby1.9.1
Suggested packages:
  ruby1.9.1-examples ri1.9.1 graphviz ruby1.9.1-dev ruby-switch
The following NEW packages will be installed:
  foreman heroku heroku-toolbelt libruby1.9.1 libyaml-0-2 ruby1.9.1
0 upgraded, 6 newly installed, 0 to remove and 126 not upgraded.
Need to get 5,177 kB of archives.
After this operation, 12.0 MB of additional disk space will be used.
Get:1 ./ foreman 0.60.0 [89.5 kB]
Get:2 wheezy/main libyaml-0-2 armhf 0.1.4-2 [49.0 kB]
Get:3 wheezy/main libruby1.9.1 armhf [4,192 kB]
Get:4 ./ heroku 2.34.0 [639 kB]
Get:5 ./ heroku-toolbelt 2.34.0 [628 B]
Get:6 wheezy/main ruby1.9.1 armhf [207 kB]
Fetched 5,177 kB in 4s (1,188 kB/s)
Selecting previously unselected package libyaml-0-2:armhf.
(Reading database ... 70836 files and directories currently installed.)
Unpacking libyaml-0-2:armhf (from .../libyaml-0-2_0.1.4-2_armhf.deb) ...
Selecting previously unselected package libruby1.9.1.
Unpacking libruby1.9.1 (from .../libruby1.9.1_1.9.3.194-5_armhf.deb) ...
Selecting previously unselected package ruby1.9.1.
Unpacking ruby1.9.1 (from .../ruby1.9.1_1.9.3.194-5_armhf.deb) ...
Selecting previously unselected package foreman.
Unpacking foreman (from .../foreman_0.60.0_all.deb) ...
Selecting previously unselected package heroku.
Unpacking heroku (from .../archives/heroku_2.34.0_all.deb) ...
Selecting previously unselected package heroku-toolbelt.
Unpacking heroku-toolbelt (from .../heroku-toolbelt_2.34.0_all.deb) ...
Processing triggers for man-db ...
Processing triggers for menu ...
Setting up libyaml-0-2:armhf (0.1.4-2) ...
Setting up libruby1.9.1 ( ...
Setting up ruby1.9.1 ( ...
update-alternatives: using /usr/bin/gem1.9.1 to provide /usr/bin/gem (gem) in auto mode
update-alternatives: using /usr/bin/ruby1.9.1 to provide /usr/bin/ruby (ruby) in auto mode
Setting up foreman (0.60.0) ...
Setting up heroku (2.34.0) ...
Setting up heroku-toolbelt (2.34.0) ...
Processing triggers for menu ...
pi@raspberrypi /mnt/usb1 $ heroku login
Enter your Heroku credentials.
Password (typing will be hidden):
Authentication successful.
pi@raspberrypi /mnt/usb1 $ mkdir test
pi@raspberrypi /mnt/usb1 $ cd test
pi@raspberrypi /mnt/usb1/test $ touch a
pi@raspberrypi /mnt/usb1/test $ heroku create
Creating secret-river-2195... done, stack is cedar |

Published at DZone with permission of Tim Spann, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)