Heroku + ChicagoBoss

65 views
Skip to first unread message

Jeff Zellner

unread,
Jan 7, 2012, 4:09:51 PM1/7/12
to chicagoboss
Has anyone tried to get CB running on Heroku (while known for RoR,
their Cedar stack supports Erlang projects).

I'm maybe 80% of the way there, after dealing with EPMD, logfiles,
rebar and a few other thing -- I'll put together a writeup if there's
any interest, but would love to hear from anyone who's done this
already (if anyone has).

Cheers,
Jeff

Trevor

unread,
Feb 9, 2012, 3:54:39 AM2/9/12
to ChicagoBoss
+1... about to try the same thing

On Jan 7, 1:09 pm, Jeff Zellner <jeff.zell...@gmail.com> wrote:
> Has anyone tried to get CB running onHeroku(while known for RoR,

Ben G.

unread,
Feb 9, 2012, 10:24:38 PM2/9/12
to ChicagoBoss
I was just considering the same thing.
There are several blog posting out there on the net and one github
project about running erlang on heroku. But they all seem to have
failed and given up early.

Perhaps you can report what small success you have had, if any?

On Jan 7, 1:09 pm, Jeff Zellner <jeff.zell...@gmail.com> wrote:

wulftone

unread,
Feb 9, 2012, 11:03:52 PM2/9/12
to ChicagoBoss
I raised a call for help in this post:
http://groups.google.com/group/chicagoboss/browse_thread/thread/f255a024f4d2ec2f

: )

The heroku-buildpack-erlang project is tiny, so I expect someone with
some Erlang and Heroku experience should be able to decipher what it's
doing exactly. It demonstrates a minuscule Erlang app (https://
github.com/JacobVorreuter/hello-erlang.git) running on Heroku in a few
steps. Applying this to ChicagoBoss is beyond my day-1 Erlang
abilities.... : P For instance, I have no idea what "rebar" is, and
there seems to be a very important "rebar.config" file in both a
ChicagoBoss project and this simple Erlang project--yet their contents
is different. There's also the Procfile, which I assume Heroku needs
to figure out how to run the app. These two files seem to be the keys
to get it to work.

ll...@writersglen.com

unread,
Feb 9, 2012, 11:20:49 PM2/9/12
to chica...@googlegroups.com
Hi Wulftone,

Rebar will save you many hours of hassle if you plan to build Erlang apps.

https://github.com/basho/rebar/wiki

rebar.config is fairly well documented on the rebar site and the various tutorials you can find on the web.

To understand the true significance of rebar, you should study Erlang OTP, Applications, and Releases.

http://www.erlang.org/doc/design_principles/users_guide.html
http://www.erlang.org/doc/design_principles/applications.html
http://www.erlang.org/doc/design_principles/release_structure.html

Also, pick up and study Joe Armstrong's book. It's the Erlang bible.

http://pragprog.com/book/jaerlang/programming-erlang

Then, work through:

Cesareini et. al.
http://www.amazon.com/ERLANG-Programming-Francesco-Cesarini/dp/0596518188/ref=pd_vtp_b_1

and

Logan et. al.
http://www.amazon.com/Erlang-OTP-Action-Martin-Logan/dp/1933988789/ref=pd_vtp_b_2

Don't forget the few good Erlang tutorials on the web. Here's one of the better ones:

Learn You Some Erlang For Great Good
http://learnyousomeerlang.com/

...but there are others.

Work and study will bring you great rewards.

All the best,

LRP

wulftone

unread,
Feb 10, 2012, 12:32:29 AM2/10/12
to ChicagoBoss
Thanks for all of the reference materials, that'll be a big help! I'm
already reading Learn You Some Erlang... It's pretty great. I was
mostly curious though--since there seems to be a bit of interest in
ChicagoBoss and also that Heroku is becoming pretty much a de-facto
standard for deploying web applications (that seems to be their goal,
and they're doing it pretty damn well)--that more people might be
interested in making this thing happen.

If I get some system up first (hardly likely considering that this is
a pet project of mine, I know close to *zero* about Erland, and this
is not my job... at least not yet!) I would of course make a github
example and the relevant documentation.

On Feb 9, 8:20 pm, ll...@writersglen.com wrote:
> Hi Wulftone,
>
> Rebar will save you many hours of hassle if you plan to build Erlang apps.
>
> https://github.com/basho/rebar/wiki
>
> rebar.config is fairly well documented on the rebar site and the various tutorials you can find on the web.
>
> To understand the true significance of rebar, you should study Erlang OTP, Applications, and Releases.
>
> http://www.erlang.org/doc/design_principles/users_guide.htmlhttp://www.erlang.org/doc/design_principles/applications.htmlhttp://www.erlang.org/doc/design_principles/release_structure.html
>
> Also, pick up and study Joe Armstrong's book. It's the Erlang bible.
>
> http://pragprog.com/book/jaerlang/programming-erlang
>
> Then, work through:
>
> Cesareini et. al.http://www.amazon.com/ERLANG-Programming-Francesco-Cesarini/dp/059651...
>
> and
>
> Logan et. al.http://www.amazon.com/Erlang-OTP-Action-Martin-Logan/dp/1933988789/re...
>
> Don't forget the few good Erlang tutorials on the web. Here's one of the better ones:
>
> Learn You Some Erlang For Great Goodhttp://learnyousomeerlang.com/
>
> ...but there are others.
>
> Work and study will bring you great rewards.
>
> All the best,
>
> LRP
>
>
>
>
>
>
>
> -----Original Message-----
> From: "wulftone" <trevor.bort...@gmail.com>
> Sent: Thursday, February 9, 2012 11:03pm
> To: "ChicagoBoss" <chica...@googlegroups.com>
> Subject: Re: Heroku + ChicagoBoss
>
> I raised a call for help in this post:http://groups.google.com/group/chicagoboss/browse_thread/thread/f255a...

ll...@writersglen.com

unread,
Feb 10, 2012, 12:48:50 AM2/10/12
to chica...@googlegroups.com
Hi wulftone,

I much look forward to hearing about your experience with Heroku and your how-to contributions.

I maintain a dedicated server, but would be interested in inexpensive cloud solutions for back-up, fast temp sites, etc.

It took me awhile to catch on to the zen of Erlang. Still working at it. But once pattern-matching, recursion, funs, and list comprehensions sunk in, my ability to write useful code accelerated greatly. I'm just starting to sink my teeth into concurrency and supervision. The ideas are easy enough, I just need more hands-on experience. The bit syntax has me really intrigued. Would love to figure out how to connect with USB, talk to microcontrollers, interface with Forth, process graphics, etc., etc. Too little time now. Have to get my book sites up. But that's where CB comes in.

Ben G.

unread,
Feb 10, 2012, 1:53:24 AM2/10/12
to ChicagoBoss
I'm not sure I would call heroku the cheapest solution. It's probably
the most expensive of the major cloud providers(although they do have
a free plan)
I just picked up a little demo VPS for $25/year this christmas over at
https://securedragon.net/ for stuff I don't want to develop in local

The big advantages I see with heroku are easy deployment, monitoring,
auto provisioning.
I think we might be able write two out of three of those as add-ons
for CB!

I know I'm going to have to write a monitoring util for myself here
eventually, so I'll post whenever I do. It would be awesome to have
db monitoring for any backend out of the box!

Anybody have any thoughts on a multi server deploy strategy or is that
better left to the individual developer?
> >http://www.erlang.org/doc/design_principles/users_guide.htmlhttp://ww...

ll...@writersglen.com

unread,
Feb 10, 2012, 2:40:56 AM2/10/12
to chica...@googlegroups.com
Hi Ben,

I'm no doubt behind you a bit re multi-server deployment. But I am very interested in max automation of site/app deployment to my dedicated server.

At the moment, I'm working on nginx as a reverse proxy. Just it installed a week or so ago on my development machine, but have little time to study it in depth. I've configured three simple static pages on it as virtual hosts. As soon as I finish proofing my book I want to install CB to serve the dynamic apps I have in mind.

The one simple problem that I haven't worked out yet is this:

Say I have Sites A, B, and C, all installed on the same hardware and served by Nginx. I'd like to access all three from separate domain names. So far so good. I know how to do that now.

But I'd also like to link from site A to B and C without going back out over the net. I haven't had a chance to play with this yet, know it's petty simple, but it's the very next task on my list. Beyond that, I want to understand all the security issues involved in Nginx configuration.

As to VPS, I ran several VPS sites for several years. Worked fine, but I was always cognizant of limitations. I've since found a provider of dedicated servers. Now spending $50/mo. for a fairly well provisioned dedicated server of my own. A few weeks ago I spotted a company in Europe that was offering a screamer for $77 a month.

So, re: deployment, do we have common interest? Is there a way we can work together?

douglas

unread,
Feb 10, 2012, 6:41:17 AM2/10/12
to chica...@googlegroups.com
Rackspcace, requires you to ssh into your server and use apt-get or
whatever to configure
your server to your liking
Why would you like someone to give you something you might or might not
need?

Graeme Defty

unread,
Feb 10, 2012, 6:48:43 AM2/10/12
to chica...@googlegroups.com

>  Why would you like someone to give you something you might or might not need?

I have a suspicion you are not really asking this as a question.

I am sorry if I am a bit slow, but what is the point you are trying to make?

______________________________________

douglas

unread,
Feb 10, 2012, 6:57:43 AM2/10/12
to chica...@googlegroups.com
you get to configure a server to meet your needs,
rather than accepting a vanilla clone

ll...@writersglen.com

unread,
Feb 10, 2012, 12:59:00 PM2/10/12
to chica...@googlegroups.com
Hi,

This thread has me thinking---

Deployment involves many issues of concern to every CB adopter. I'm starting a new thread with subject "Deployment" in hope that we can explore the issues, expand the wiki on relevant topics and, perhaps, develop some code to make deployment easier and safer.

Best,

LRP


-----Original Message-----
From: "Ben G." <bng...@gmail.com>

Ben G.

unread,
Feb 10, 2012, 3:23:45 PM2/10/12
to ChicagoBoss


On Feb 9, 11:40 pm, ll...@writersglen.com wrote:
> Hi Ben,
>
> I'm no doubt behind you a bit re multi-server deployment. But I am very interested in max automation of site/app deployment to my dedicated server.
>
try this video:
http://www.erlang-factory.com/conference/SFBay2011/speakers/JoeWilliams

> But I'd also like to link from site A to B and C without going back out over the net. I haven't had a chance to play with this yet, know it's petty simple, but it's the very next task on my list. Beyond that, I want to understand all the security issues involved in Nginx configuration.
>
Link? I'm not sure what you mean. if you mean just a shared static
file you can use the "ln" command from terminal.
But if your avoiding a hyperlink between sites, why?

> As to VPS, I ran several VPS sites for several years. Worked fine, but I was always cognizant of limitations.

Do you mean shared hosting? I have full control over my VPS

>I've since found a provider of dedicated servers. Now spending $50/mo. for a fairly well provisioned dedicated server of my own. A few weeks ago I spotted a company in Europe that was offering a screamer for $77 a month.
>
> So, re: deployment, do we have common interest?
I think we're dealing with different interests

> Is there a way we can work together?

Yes of course, this is open source software after all

ll...@writersglen.com

unread,
Feb 10, 2012, 6:47:18 PM2/10/12
to chica...@googlegroups.com
> http://www.erlang-factory.com/conference/SFBay2011/speakers/JoeWilliams

This is excellent.

Thank you.

LRP

-----Original Message-----
From: "Ben G." <bng...@gmail.com>
Sent: Friday, February 10, 2012 3:23pm
To: "ChicagoBoss" <chica...@googlegroups.com>
Subject: Re: Heroku + ChicagoBoss

Kai Janson

unread,
Feb 14, 2012, 10:12:47 AM2/14/12
to chica...@googlegroups.com
Also, there is http://erldocs.com/ which is really helpful, too.

—Kai
Reply all
Reply to author
Forward
0 new messages