-
Notifications
You must be signed in to change notification settings - Fork 3
/
sc_config
71 lines (56 loc) · 1.83 KB
/
sc_config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
sc_require('apps/TodosOne/sc_config');
sc_require('apps/TodosTwo/sc_config');
sc_require('apps/TodosThree/sc_config');
/*
Please don't remove the following server configuration, as the build tools use it to
determine the root of your project.
*/
BT.serverConfig = {
/**
The port on which the development server should run
@property
@type Number
@default 4020
*/
port: 4020,
/**
Set it to false to allow access from the network.
@property
@type Boolean
@default true
*/
localOnly: false,
/**
A JSON file to use to store build numbers.
You must define this property to enable build number support.
Example:
buildNumberPath: 'build_number.json',
@property
@type String
@default null
*/
buildNumberPath: null,
/**
Define this property if you need one or more proxies.
If you do a request from your app (file or XHR) which doesn't match anything the BT provide,
the request will be run past the proxies in the order you define them here.
You can use the prefix to filter which requests will be forwarded to where.
In the proxied request the prefix you define will be replaced by the proxyPrefix.
The example shows how to set up a catch-all proxy, in this case to CouchDB.
You can set as many proxies as you want, as long as they don't share a prefix.
Example:
proxies: [
{
prefix: '/', // set a prefix here for the development server
host: 'localhost', // to which host should the request be forwarded
port: 5984, // on which port is the host listening?
logRequests: false, // show the requests in the terminal?
proxyPrefix: '/' // replace the prefix set above with this
}
]
@property
@type Array
@default null
*/
proxies: null
}