Tag Archives: erlang

Generate and publish edoc in Jenkins using Javadoc plugin

edoc is Erlang’s answer to javadoc and can be easily added to an existing Jenkins  Erlang build job leveraging the Jenkins javadoc plugin to generate and display documentation. Generate edoc Generate edoc for a rebar enabled project by invoking the following command ./rebar doc skip_deps=true This automatically creates creates a doc dir which will be […]

escript: bad_central_directory

escript: bad_central_directory escript is packaged as part of the erlang otp and essentially executes uncompiled erlang code. Rebar delegates alot of work to it. Recently, I was getting the following error when trying to run the webmachine project files from the excellent book, ‘7 webservers in 7 weeks‘. I’m running R16B02 on OS X $ […]

Creating a RESTful Service in Chicago Boss

Here’s an end-to-end REST implementation in Chicago Boss. Not sure has anyone a nice concise guide out there so hope this is useful. Overview A very simple model (Book[title, author, insertTimestamp, updateTimestamp]) CRUD implementation where             Create is a POST request             Read is a […]

ChicagoBoss – The requested template (“src/view/blaindex.{dtl,html,txt,js,jade,eex}”) was not found. Additionally, no handler was found for processing 404 errors. You probably want to modify bla.routes to prevent errors like this one.

I wasted a lot of time with the above exception. Editing the routes file to no avail. The problem here is most likely with the controller. The problem in my case was that IntelliJ added below by default %% API -export([]). where it should have been %% API -compile(export_all). Simple one, but wasted a lot […]

Vagrantfile for an Erlang/MySql project using Chef

Vagrant is a great tool for getting a virtualized server up and running The following is a cookbook and Vagrantfile for setting up a 64bit ubuntu box. I had a lot of workarounds to get an environment successfully set up, hopefully this will ease the pain Install Vagrant and VirtualBox Create cookbook folder for chef Clone […]