Questions tagged [chicagoboss]

Chicago Boss is a server framework inspired by Rails and written in Erlang.

Chicago Boss takes advantage of functional programming and under-the-hood compiler magic to provide clean, understandable controller logic, Django-style templates, and an ORM based on Erlang's parameterized modules. The best part is that the network I/O is 100% asynchronous so you can seamlessly integrate Comet endpoints into your app, and you never have to worry about a slow database query dragging down unrelated requests.

84 questions
38
votes
0 answers

Chicago Boss: Routes does not work in production mode?

I created the rahm_test_controller.erl file in src directory, and added an action named hello. In /priv/rahm.routes, I added this line for home page: {"/",[{controller,"test"}, {action, "hello"}]}. If I launch the server with ./init-dev.sh, it…
Mr.Wang from Next Door
  • 13,670
  • 12
  • 64
  • 97
10
votes
3 answers

anyone out there using Chicago Boss?

Chicago Boss seems like a neat framework and a good excuse to learn Erlang. Have any of you used it? Can I really get great performance hosting it on a single machine?
user94154
  • 16,176
  • 20
  • 77
  • 116
5
votes
1 answer

What is the default Web Server for Chicago Boss?

Chicago Boss is a great Erlang Framework. It ships with many dependecies including mochiweb, yaws, and misultin. After installation, Chicago Boss runs a development server very well.I need to know which of the web servers it ships with, does it use…
Muzaaya Joshua
  • 7,736
  • 3
  • 47
  • 86
5
votes
2 answers

Adding foreign key to model using chicagoboss?

I am a newbie to erlang and chicago boss. I followed Chicago boss API documentation. I have been working with Python and Django earlier. Now in Chicago boss can we add foreign key in models. This is my model. model: anatomy.erl -module(anatomy,…
user3815680
5
votes
2 answers

Get current directory in erlang

I'm using chicagoboss for web development. To test some test modules I would like to change my current directory to something else. I know I can change directory by specifying full path to to cd("full path"). Suppose I'm in a directory…
user3401408
3
votes
1 answer

"context" can not be used ChicagoBoss Template Tags

After upgrading ChicagoBoss to latest version (i.e.from 0.8.10 -> 0.8.14). I have been observing that the term "context" can not be used in any of the chicagoboss template tags. Its giving syntax error : eg. {% if context == data.code %} …
trex
  • 3,848
  • 4
  • 31
  • 54
3
votes
1 answer

Chicagoboss - How to update lager_file_backend config?

I have updated ChicagoBoss to my latest version. When I'm compiling it, I'm getting a notice as Deprecated lager_file_backend config detected, please consider updating it I'm compiling it using following command: ./rebar get-deps clean…
trex
  • 3,848
  • 4
  • 31
  • 54
2
votes
3 answers

How can I optimize this?

I'm currently learning to code Erlang. I have a web application on top of Chicago Boss. I have a model called Todo, and I would like to offer CRUD operations on it as a REST API. In my PUT method I have this code: index('PUT', [Id]) -> Todo =…
Sebastian Hoitz
  • 9,343
  • 13
  • 61
  • 77
2
votes
1 answer

error "init terminating in do_boot" in chicago boss

I just tried "make" in Chicago Boss(Erlang web framework) dir and failed with error {"init terminating in do_boot",{undef,[{make,all,[]},{init,start_it,1},{init,start_em,1}]}} What is wrong? What should I do? My environment is Ubuntu 10.04,…
Stan
  • 4,169
  • 2
  • 31
  • 39
2
votes
1 answer

How to start deps application automatcially in Chicago Boss?

I can't figure out how to automatically start an "deps" applciation in Chicago Boss. Use applcation:which_applications() I can see a bunch started like "lager, ranch, cowboy ..etc etc". How do I start another one I added? If I go to console and…
Hao
  • 6,291
  • 9
  • 39
  • 88
2
votes
1 answer

ChicagoBoss failed to run on version OTP18.1

I am currently using newest erlang version otp/18.1 to run ChicagoBoss, but I see this error ERROR: compile failed while processing /home/datumwiine/ChicagoBoss-0.8.15/deps/riak_pb: rebar_abort What could be wrong?
Dick. T
  • 21
  • 4
2
votes
1 answer

Erlang ChicagoBoss passing url get parameters

I would like to perform a simple operation that takes me hours to solve in erlang and ChicagoBoss: Here is the url: http://example.com?string=some+string Desired result: some…
busy
  • 367
  • 1
  • 4
  • 14
2
votes
1 answer

Chicago Boss CSRF and variable passing to template files

I've two problems with my simple application. I've read the documents twice, but had no luck to using boss_csrf_filter and passing variables to templates. First I've done the configuration for using CSRF filter in boss.config file as the following…
dr.linux
  • 752
  • 5
  • 15
  • 37
2
votes
2 answers

Where does the log goes when error_logger:info_msg/2 is used

I'm using Erlang and Chicagoboss. When I am connected to localhost, I can see the log in server console. Where I run sh init-dev.sh.But in production mode I guess project runs as a daemon. Does anyone know where I can see the logs written by the…
trex
  • 3,848
  • 4
  • 31
  • 54
2
votes
1 answer

Tools for reading Erlang console or error logs

I am new to erlang and Chicago Boss have been using them for only been a couple of weeks, So I have been making my fare share of mistakes in that time. which does not bother me that much as it all part of learning. But the thing that does frustrate…
jazzjazzy
  • 412
  • 3
  • 20
1
2 3 4 5 6