equal
deleted
inserted
replaced
15 |
15 |
16 Then create and initialize your instance:: |
16 Then create and initialize your instance:: |
17 |
17 |
18 cubicweb-ctl create blog myblog |
18 cubicweb-ctl create blog myblog |
19 |
19 |
|
20 The `blog` argument is the cube on which you want to base your instance and |
|
21 `myblog` is the name of your instance. |
|
22 |
|
23 .. Note:: |
|
24 |
|
25 If you get an a permission error of this kind `OSError: [Errno 13] |
|
26 Permission denied: '/etc/cubicweb.d/myblog'`, read the :ref:`next section`. |
|
27 |
20 You'll be asked a few questions, and you can keep the default answer for most of |
28 You'll be asked a few questions, and you can keep the default answer for most of |
21 them. The one question you'll have to think about is the database you'll want to |
29 them. The one question you'll have to think about is the database you'll want to |
22 use for that instance. For a quick test, if you don't have `postgresql` installed |
30 use for that instance. For a quick test, if you don't have `postgresql` installed |
23 and configured (see :ref:`PostgresqlConfiguration`), it's highly recommended to |
31 and configured (see :ref:`PostgresqlConfiguration`), it's highly recommended to |
24 choose `sqlite` when asked for which database driver to use, since it has a much |
32 choose `sqlite` when asked for which database driver to use, since it has a much |
31 |
39 |
32 The `-D` option activates the debugging mode. Removing it will launch the instance |
40 The `-D` option activates the debugging mode. Removing it will launch the instance |
33 as a daemon in the background, and ``cubicweb-ctl stop myblog`` will stop |
41 as a daemon in the background, and ``cubicweb-ctl stop myblog`` will stop |
34 it in that case. |
42 it in that case. |
35 |
43 |
|
44 .. _AboutFileSystemPermissions: |
36 |
45 |
37 About file system permissions |
46 About file system permissions |
38 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
47 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
39 |
48 |
40 Unless you installed from sources, the above commands assume that you have root |
49 Unless you installed from sources, the above commands assume that you have root |
60 Then relaunch the database creation:: |
69 Then relaunch the database creation:: |
61 |
70 |
62 cubicweb-ctl db-create myblog |
71 cubicweb-ctl db-create myblog |
63 |
72 |
64 Other parameters, like web server or emails parameters, can be modified in the |
73 Other parameters, like web server or emails parameters, can be modified in the |
65 :file:`/etc/cubicweb.d/myblog/all-in-one.conf` file. |
74 :file:`/etc/cubicweb.d/myblog/all-in-one.conf` file (or :file:`~/etc/cubicweb.d/myblog/all-in-one.conf` depending on your configuration.) |
66 |
75 |
67 You'll have to restart the instance after modification in one of those files. |
76 You'll have to restart the instance after modification in one of those files. |
68 |
77 |
69 This is it. Your blog is functional and running. Visit http://localhost:8080 and enjoy it! |
78 This is it. Your blog is functional and running. Visit http://localhost:8080 and enjoy it! |
70 |
79 |