Hi,
You can set the variables in boss.config:
[{boss, [
{path, "../ChicagoBoss"},
{vm_args, "-simple_bridge_max_post_size 20000
-simple_bridge_scratch_dir \"/..data\””}
…
Best regards,
Niclas
11 mar 2014 kl. 11:11 skrev [email protected]:
> It seems, that simple bridge is not started as an application.
> It is used as a library, which means, that application:get_env will return
> undefined,
> no matter what I put in application config.
> That is why it uses internally different function to get this value:
> init:get_argument(simple_bridge_max_post_size).
> But I don't know how to pass arguments to erlang during CB startup
>
> W dniu wtorek, 11 marca 2014 10:43:22 UTC+1 użytkownik mihawk napisał:
> should be configurable from boss.config like any otp app i guess
>
> [
> ...
> {simple_bridge, [
> {simple_bridge_max_post_size, 150}
> ] },
>
> Jess could confirm or not
>
>
>
>
> 2014-03-11 17:25 GMT+08:00 <[email protected]>:
> Hi!
>
> I want to upload 150Mb files with CB.
> First problem I encountered is simple_bridge_max_post_size.
> It is set to 100Mb and it says:
> % Override with -simple_bridge_max_post_size SizeInMB
> I am not sure, how do I pass command line arguments to CB.
> Should I modify rebar start command? Is there a way to pass variable by
> setting it in boss.config?
>
> For now, I've edited simple_bridge_multipart.erl
> -define (MAX_POST_SIZE, 1000).
>
> Second problem is body_too_large
> returned from mochicow_request:stream_body/4
> Should I increase some value here too?
>
> BR,
> Tomasz Kowal
>
> --
> You received this message because you are subscribed to the Google Groups
> "ChicagoBoss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> Visit this group at http://groups.google.com/group/chicagoboss.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/chicagoboss/6289b9d6-b920-4829-be9d-81f8ad80c3d0%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "ChicagoBoss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> Visit this group at http://groups.google.com/group/chicagoboss.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/chicagoboss/2f58edb8-8fb4-4d76-bff1-34718f23ecd1%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit
https://groups.google.com/d/msgid/chicagoboss/F709D351-5D62-4566-B25D-526F96A19A2D%40gmail.com.
For more options, visit https://groups.google.com/d/optout.