-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Making progress with fixing mochiweb errors
- Loading branch information
1 parent
2cd9ff5
commit cba23eb
Showing
7 changed files
with
87 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
%% vim: ts=4 sw=4 et ft=erlang | ||
%% This .src file will have instances of mochiweb replaced with each backend upon testing | ||
[ | ||
{simple_bridge, [ | ||
|
||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
%% STANDARD SETTINGS | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
|
||
{server_name, bridge_test_mochiweb}, | ||
%% You can call this whatever you want. Name it after your application | ||
%% is probably best | ||
|
||
{handler, simple_bridge_test_handler}, | ||
%% the name of the simple_bridge handler module, which is expected to | ||
%% export run/1, ws_init/1, ws_message/1, ws_info/1, and terminate/1 | ||
|
||
{backend, mochiweb}, %% This will be updated for each test | ||
%% cowboy | inets | mochiweb | webmachine | yaws | ||
%% It's not necessary to specify this in the confiugration unless you | ||
%% want to start simple_bridge with application:start(simple_bridge) or | ||
%% simple_bridge:start/0 | ||
|
||
{address, "127.0.0.1"}, | ||
%% IP address to bind, either in tuple format or string | ||
|
||
{port, 8000}, | ||
%% Port to bind | ||
|
||
{document_root, "../../test/static"}, | ||
%% The path on the local machine to handle static files | ||
|
||
{static_paths, ["static/"]}, | ||
%% The list of paths to be automatically translated to static paths by | ||
%% simple_bridge | ||
|
||
%% {anchor, AnchorModule} | ||
%% If not provided or set to undefined, will use | ||
%% mochiweb_simple_bridge_anchor. This is the backend-specific module | ||
%% for handling the requests from your chosen backend. | ||
|
||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
%% FILE UPLOAD SETTINGS | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
|
||
{max_post_size, 100}, | ||
%% No multipart request greater than above will be accepted. Units are | ||
%% MB | ||
|
||
{max_file_size, 100}, | ||
%% No single uploaded file will be accepted greater than the above. | ||
%% Units are MB. | ||
|
||
{max_file_in_memory_size, 0}, | ||
%% If a file is less than the above, then instead of writing the file | ||
%% to disk, it'll be retained in memory and can be retrieved by | ||
%% sb_uploaded_file:data/1. See the README for more info. | ||
|
||
{scratch_dir, "./scratch"} | ||
%% This is the location of the temp directory where uploaded files will | ||
%% be placed. | ||
|
||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
%% mochiweb-SPECIFIC DISPATCH TABLES: | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
|
||
%% {webmachine_dispatch, DispatchTable}, | ||
%% Webmachine dispatch table override (ignores static_paths above) | ||
|
||
%% {webmachine_dispatch_function, {Module, Function}} | ||
%% A Module:Function() that when evaluated will return a dispatch table | ||
%% for Webmachine, again ignores the static_paths above | ||
|
||
%% {cowboy_dispatch, DispatchTable} | ||
%% Cowboy dispatch table override (ignores static_paths) | ||
|
||
%% {cowboy_dispatch_function, {Module, Function}} | ||
%% A Module:Function() that when evaluated will return a dispatch tavle | ||
%% for Cowboy, again ignoring the static_paths above | ||
]} | ||
]. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters