Over a million developers have joined DZone.

Get Heroku on Your Raspberry Pi

· IoT Zone

Access the survey results 'State of Industrial Internet Application Development' to learn about latest challenges, trends and opportunities with Industrial IoT, brought to you in partnership with GE Digital.


pi@raspberrypi /mnt/usb1 $ wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | 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--  https://toolbelt.heroku.com/apt/release.key
Resolving toolbelt.heroku.com (toolbelt.heroku.com)...,,, ...
Connecting to toolbelt.heroku.com (toolbelt.heroku.com)||: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 http://archive.raspberrypi.org wheezy InRelease
Ign http://toolbelt.heroku.com ./ InRelease
Get:1 http://mirrordirector.raspbian.org wheezy InRelease [12.5 kB]
Get:2 http://toolbelt.heroku.com ./ Release.gpg [490 B]
Hit http://archive.raspberrypi.org wheezy/main armhf Packages
Get:3 http://toolbelt.heroku.com ./ Release [1,673 B]
Get:4 http://mirrordirector.raspbian.org wheezy/main armhf Packages [7,403 kB]
Get:5 http://toolbelt.heroku.com ./ Packages [1,045 B]
Ign http://toolbelt.heroku.com ./ Translation-en_US
Ign http://toolbelt.heroku.com ./ Translation-en
Ign http://archive.raspberrypi.org wheezy/main Translation-en_US
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Get:6 http://mirrordirector.raspbian.org wheezy/contrib armhf Packages [23.3 kB]
Get:7 http://mirrordirector.raspbian.org wheezy/non-free armhf Packages [47.8 kB]
Get:8 http://mirrordirector.raspbian.org wheezy/rpi armhf Packages [14 B]
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en_US
Ign http://mirrordirector.raspbian.org wheezy/contrib Translation-en
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en_US
Ign http://mirrordirector.raspbian.org wheezy/main Translation-en
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en_US
Ign http://mirrordirector.raspbian.org wheezy/non-free Translation-en
Ign http://mirrordirector.raspbian.org wheezy/rpi Translation-en_US
Ign http://mirrordirector.raspbian.org 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 http://toolbelt.heroku.com/ubuntu/ ./ foreman 0.60.0 [89.5 kB]
Get:2 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libyaml-0-2 armhf 0.1.4-2 [49.0 kB]
Get:3 http://mirrordirector.raspbian.org/raspbian/ wheezy/main libruby1.9.1 armhf [4,192 kB]
Get:4 http://toolbelt.heroku.com/ubuntu/ ./ heroku 2.34.0 [639 kB]
Get:5 http://toolbelt.heroku.com/ubuntu/ ./ heroku-toolbelt 2.34.0 [628 B]
Get:6 http://mirrordirector.raspbian.org/raspbian/ 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.
Email: piman@pimail.com
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
http://secret-river-2195.herokuapp.com/ | git@heroku.com:secret-river-2195.git

The IoT Zone is brought to you in partnership with GE Digital.  Discover how IoT developers are using Predix to disrupt traditional industrial development models.


Published at DZone with permission of Tim Spann, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}