basho / webmachine (http://webmachine.basho.com/)
A REST-based system for building web applications.
| commit 126: | f853d22b70c4 |
| parent 125: | 09dfb7ba26d0 |
| branch: | default |
switch from copying webmachine source to using rebar deps
also make start.sh == start-dev.sh, and remove start-dev.sh
5 months ago
Changed (Δ5.7 KB):
raw changeset »
priv/templates/rebar.config (4 lines added, 3 lines removed)
priv/templates/start-dev.sh
priv/templates/start.sh (1 lines added, 1 lines removed)
priv/templates/wmskel.template (1 lines added, 107 lines removed)
Up to file-list priv/templates/rebar.config:
1 |
1 |
%%-*- mode: erlang -*- |
2 |
{sub_dirs, ["apps/mochiweb", |
|
3 |
"apps/webmachine"]}. |
|
4 |
{ |
|
2 |
{sub_dirs, ["deps/webmachine"]}. |
|
3 |
{lib_dirs, ["deps", "deps/webmachine/deps"]}. |
|
4 |
{deps, [{webmachine, "1\\.5", {hg, "http://hg.basho.com/webmachine", "tip"}}]}. |
|
5 |
Up to file-list priv/templates/start.sh:
1 |
1 |
#!/bin/sh |
2 |
2 |
cd `dirname $0` |
3 |
exec erl -pa $PWD/ebin $PWD/ |
|
3 |
exec erl -pa $PWD/ebin $PWD/deps/webmachine/ebin $PWD/deps/webmachine/deps/mochiweb/ebin -boot start_sasl -s reloader -s {{appid}} |
Up to file-list priv/templates/wmskel.template:
20 |
20 |
{chmod, 8#744, "{{prefix}}/rebar"}. |
21 |
21 |
{template, "start.sh", "{{prefix}}/start.sh"}. |
22 |
22 |
{chmod, 8#744, "{{prefix}}/start.sh"}. |
23 |
{template, "start-dev.sh", "{{prefix}}/start-dev.sh"}. |
|
24 |
{chmod, 8#744, "{{prefix}}/start-dev.sh"}. |
|
25 |
23 |
|
26 |
24 |
{template, "ebin/wmskel.app", "{{prefix}}/ebin/{{appid}}.app"}. |
27 |
25 |
|
34 |
32 |
{dir, "{{prefix}}/priv/www"}. |
35 |
33 |
|
36 |
34 |
%% dependencies |
37 |
{dir, "{{prefix}}/apps"}. |
|
38 |
||
39 |
%% Webmachine |
|
40 |
{file, "{{webmachine}}/ebin/webmachine.app", |
|
41 |
"{{prefix}}/apps/webmachine/ebin/webmachine.app"}. |
|
42 |
||
43 |
{file, "{{webmachine}}/include/webmachine.hrl", |
|
44 |
"{{prefix}}/apps/webmachine/include/webmachine.hrl"}. |
|
45 |
{file, "{{webmachine}}/include/wm_reqdata.hrl", |
|
46 |
"{{prefix}}/apps/webmachine/include/wm_reqdata.hrl"}. |
|
47 |
{file, "{{webmachine}}/include/wm_reqstate.hrl", |
|
48 |
"{{prefix}}/apps/webmachine/include/wm_reqstate.hrl"}. |
|
49 |
||
50 |
{file, "{{webmachine}}/priv/trace/wmtrace.css", |
|
51 |
"{{prefix}}/apps/webmachine/priv/trace/wmtrace.css"}. |
|
52 |
{file, "{{webmachine}}/priv/trace/wmtrace.js", |
|
53 |
"{{prefix}}/apps/webmachine/priv/trace/wmtrace.js"}. |
|
54 |
{file, "{{webmachine}}/priv/trace/http-headers-status-v3.png", |
|
55 |
"{{prefix}}/apps/webmachine/priv/trace/http-headers-status-v3.png"}. |
|
56 |
||
57 |
{file, "{{webmachine}}/src/wrq.erl", |
|
58 |
"{{prefix}}/apps/webmachine/src/wrq.erl"}. |
|
59 |
{file, "{{webmachine}}/src/wmtrace_resource.erl", |
|
60 |
"{{prefix}}/apps/webmachine/src/wmtrace_resource.erl"}. |
|
61 |
{file, "{{webmachine}}/src/webmachine_util.erl", |
|
62 |
"{{prefix}}/apps/webmachine/src/webmachine_util.erl"}. |
|
63 |
{file, "{{webmachine}}/src/webmachine_sup.erl", |
|
64 |
"{{prefix}}/apps/webmachine/src/webmachine_sup.erl"}. |
|
65 |
{file, "{{webmachine}}/src/webmachine_resource.erl", |
|
66 |
"{{prefix}}/apps/webmachine/src/webmachine_resource.erl"}. |
|
67 |
{file, "{{webmachine}}/src/webmachine_request.erl", |
|
68 |
"{{prefix}}/apps/webmachine/src/webmachine_request.erl"}. |
|
69 |
{file, "{{webmachine}}/src/webmachine_perf_logger.erl", |
|
70 |
"{{prefix}}/apps/webmachine/src/webmachine_perf_logger.erl"}. |
|
71 |
{file, "{{webmachine}}/src/webmachine_multipart.erl", |
|
72 |
"{{prefix}}/apps/webmachine/src/webmachine_multipart.erl"}. |
|
73 |
{file, "{{webmachine}}/src/webmachine_mochiweb.erl", |
|
74 |
"{{prefix}}/apps/webmachine/src/webmachine_mochiweb.erl"}. |
|
75 |
{file, "{{webmachine}}/src/webmachine_logger.hrl", |
|
76 |
"{{prefix}}/apps/webmachine/src/webmachine_logger.hrl"}. |
|
77 |
{file, "{{webmachine}}/src/webmachine_logger.erl", |
|
78 |
"{{prefix}}/apps/webmachine/src/webmachine_logger.erl"}. |
|
79 |
{file, "{{webmachine}}/src/webmachine_error_handler.erl", |
|
80 |
"{{prefix}}/apps/webmachine/src/webmachine_error_handler.erl"}. |
|
81 |
{file, "{{webmachine}}/src/webmachine_dispatcher.erl", |
|
82 |
"{{prefix}}/apps/webmachine/src/webmachine_dispatcher.erl"}. |
|
83 |
{file, "{{webmachine}}/src/webmachine_deps.erl", |
|
84 |
"{{prefix}}/apps/webmachine/src/webmachine_deps.erl"}. |
|
85 |
{file, "{{webmachine}}/src/webmachine_decision_core.erl", |
|
86 |
"{{prefix}}/apps/webmachine/src/webmachine_decision_core.erl"}. |
|
87 |
{file, "{{webmachine}}/src/webmachine_app.erl", |
|
88 |
"{{prefix}}/apps/webmachine/src/webmachine_app.erl"}. |
|
89 |
{file, "{{webmachine}}/src/webmachine.erl", |
|
90 |
"{{prefix}}/apps/webmachine/src/webmachine.erl"}. |
|
91 |
||
92 |
%% Mochiweb |
|
93 |
{file, "{{webmachine}}/deps/mochiweb/ebin/mochiweb.app", |
|
94 |
"{{prefix}}/apps/mochiweb/ebin/mochiweb.app"}. |
|
95 |
||
96 |
{file, "{{webmachine}}/deps/mochiweb/src/reloader.erl", |
|
97 |
"{{prefix}}/apps/mochiweb/src/reloader.erl"}. |
|
98 |
{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_util.erl", |
|
99 |
"{{prefix}}/apps/mochiweb/src/mochiweb_util.erl"}. |
|
100 |
{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_sup.erl", |
|
101 |
"{{prefix}}/apps/mochiweb/src/mochiweb_sup.erl"}. |
|
102 |
{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_socket_server.erl", |
|
103 |
"{{prefix}}/apps/mochiweb/src/mochiweb_socket_server.erl"}. |
|
104 |
{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_skel.erl", |
|
105 |
"{{prefix}}/apps/mochiweb/src/mochiweb_skel.erl"}. |
|
106 |
{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_response.erl", |
|
107 |
"{{prefix}}/apps/mochiweb/src/mochiweb_response.erl"}. |
|
108 |
{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_request.erl", |
|
109 |
"{{prefix}}/apps/mochiweb/src/mochiweb_request.erl"}. |
|
110 |
{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_multipart.erl", |
|
111 |
"{{prefix}}/apps/mochiweb/src/mochiweb_multipart.erl"}. |
|
112 |
{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_http.erl", |
|
113 |
"{{prefix}}/apps/mochiweb/src/mochiweb_http.erl"}. |
|
114 |
{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_html.erl", |
|
115 |
"{{prefix}}/apps/mochiweb/src/mochiweb_html.erl"}. |
|
116 |
{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_headers.erl", |
|
117 |
"{{prefix}}/apps/mochiweb/src/mochiweb_headers.erl"}. |
|
118 |
{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_echo.erl", |
|
119 |
"{{prefix}}/apps/mochiweb/src/mochiweb_echo.erl"}. |
|
120 |
{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_cookies.erl", |
|
121 |
"{{prefix}}/apps/mochiweb/src/mochiweb_cookies.erl"}. |
|
122 |
{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_charref.erl", |
|
123 |
"{{prefix}}/apps/mochiweb/src/mochiweb_charref.erl"}. |
|
124 |
{file, "{{webmachine}}/deps/mochiweb/src/mochiweb_app.erl", |
|
125 |
"{{prefix}}/apps/mochiweb/src/mochiweb_app.erl"}. |
|
126 |
{file, "{{webmachine}}/deps/mochiweb/src/mochiweb.erl", |
|
127 |
"{{prefix}}/apps/mochiweb/src/mochiweb.erl"}. |
|
128 |
{file, "{{webmachine}}/deps/mochiweb/src/mochinum.erl", |
|
129 |
"{{prefix}}/apps/mochiweb/src/mochinum.erl"}. |
|
130 |
{file, "{{webmachine}}/deps/mochiweb/src/mochijson2.erl", |
|
131 |
"{{prefix}}/apps/mochiweb/src/mochijson2.erl"}. |
|
132 |
{file, "{{webmachine}}/deps/mochiweb/src/mochijson.erl", |
|
133 |
"{{prefix}}/apps/mochiweb/src/mochijson.erl"}. |
|
134 |
{file, "{{webmachine}}/deps/mochiweb/src/mochihex.erl", |
|
135 |
"{{prefix}}/apps/mochiweb/src/mochihex.erl"}. |
|
136 |
{file, "{{webmachine}}/deps/mochiweb/src/mochifmt_std.erl", |
|
137 |
"{{prefix}}/apps/mochiweb/src/mochifmt_std.erl"}. |
|
138 |
{file, "{{webmachine}}/deps/mochiweb/src/mochifmt_records.erl", |
|
139 |
"{{prefix}}/apps/mochiweb/src/mochifmt_records.erl"}. |
|
140 |
{file, "{{webmachine}}/deps/mochiweb/src/mochifmt.erl", |
|
141 |
|
|
35 |
{dir, "{{prefix}}/deps"}. |
