@@ -6,25 +6,40 @@ User Map
66
77A simple flask application for creating user community maps.
88
9- First create a valid `` config.py `` e.g.
9+ By default, this app reads configuration from ` users/config.py ` .
10+ To override values set in default config, simply copy the contents
11+ of ` users/config.py ` and save it elsewhere.
1012
11- ```
12- cp users/config.py.prod users/config.py
13- ```
13+ cp users/config.py /path/to/custom/config.py
14+
15+ Then edit the custom config file, setting appropriate values as needed.
16+
17+ To run in debug mode (which will also serve up static content),
18+ use the ` -d ` flag:
19+
20+ USERS_CONFIG=/path/to/custom/config.py python runserver.py -d
21+
22+ Each config item is overridable through environment variable.
23+ For instance, if you want to suppress email delivery,
24+ simply set appropriate value:
1425
15- Then edit the config file, setting appropriate values as needed.
26+ USERS_MAIL_SUPPRESS_SEND=True python runserver
1627
17- To run in debug mode (which will also serve up static content), use the -d
18- flag.
28+ To run testcases:
1929
20- `` python runserver .py -d ``
30+ USERS_CONFIG=/path/to/custom/config .py MAIL_SUPPRESS_SEND=True ./runtests.sh
2131
32+ Collaboration
33+ -------------
2234
23- If running under pycharm, remember to edit the run configuration and add the
24- `` -d `` to the parameters.
35+ 1 . Fork this repo.
36+ 2 . Create a topic branch in your forked repo and start hacking.
37+ 3 . Run ` runtests.sh ` . Ensure all tests passed.
38+ 4 . Once it done, submit your pull request (PR) against upstream ` develop ` branch.
39+ 5 . Our maintainers will review your PR. If it's good — all tests passed and proposed feature is in our roadmap — your PR will be merged.
2540
2641Deployment using Docker
27- =======================
42+ -----------------------
2843
2944If you are using docker, you can create a Docker image for this app easily as
3045follows:
@@ -46,6 +61,6 @@ wget -O sources.list https://raw.github.com/timlinux/user_map/master/docker/hetz
4661```
4762
4863Authors
49- =======
64+ -------
5065
5166Tim Sutton and Akbar Gumbira
0 commit comments