|
1 .. _cubicweb-ctl_pyramid: |
|
2 |
|
3 The 'pyramid' command |
|
4 ===================== |
|
5 |
|
6 .. program:: cubicweb-ctl pyramid |
|
7 |
|
8 The 'pyramid' command is a replacement for the 'start' command of :ref:`cubicweb-ctl`. |
|
9 It provides the same options and a few other ones. |
|
10 |
|
11 .. note:: |
|
12 |
|
13 The 'pyramid' command is provided by the ``pyramid`` cube. |
|
14 |
|
15 Options |
|
16 ------- |
|
17 |
|
18 |
|
19 .. option:: --no-daemon |
|
20 |
|
21 Run the server in the foreground. |
|
22 |
|
23 .. option:: --debug-mode |
|
24 |
|
25 Activate the repository debug mode (logs in the console and the debug |
|
26 toolbar). Implies :option:`--no-daemon`. |
|
27 |
|
28 Also force the following pyramid options: |
|
29 |
|
30 .. code-block:: ini |
|
31 |
|
32 pyramid.debug_authorization = yes |
|
33 pyramid.debug_notfound = yes |
|
34 pyramid.debug_routematch = yes |
|
35 pyramid.reload_templates = yes |
|
36 |
|
37 .. option:: -D, --debug |
|
38 |
|
39 Equals to :option:`--debug-mode` :option:`--no-daemon` :option:`--reload` |
|
40 |
|
41 .. option:: --reload |
|
42 |
|
43 Restart the server if any source file is changed |
|
44 |
|
45 .. option:: --reload-interval=RELOAD_INTERVAL |
|
46 |
|
47 Interval, in seconds, between file modifications checks [current: 1] |
|
48 |
|
49 .. option:: -l <log level>, --loglevel=<log level> |
|
50 |
|
51 Set the loglevel. debug if -D is set, error otherwise |
|
52 |
|
53 .. option:: -p, --profile |
|
54 |
|
55 Enable profiling. See :ref:`profiling`. |
|
56 |
|
57 .. option:: --profile-output=PROFILE_OUTPUT |
|
58 |
|
59 Profiling output file (default: "program.prof") |
|
60 |
|
61 .. option:: --profile-dump-every=N |
|
62 |
|
63 Dump profile stats to ouput every N requests (default: 100) |