equal
deleted
inserted
replaced
134 One easy way, as we've no really valuable data in the instance would be to trash and recreated it:: |
134 One easy way, as we've no really valuable data in the instance would be to trash and recreated it:: |
135 |
135 |
136 cubicweb-ctl stop myblog # or Ctrl-C in the terminal running the server in debug mode |
136 cubicweb-ctl stop myblog # or Ctrl-C in the terminal running the server in debug mode |
137 cubicweb-ctl delete myblog |
137 cubicweb-ctl delete myblog |
138 cubicweb-ctl create myblog myblog |
138 cubicweb-ctl create myblog myblog |
139 cubicweb-ctl start -D myblog |
139 cubicweb-ctl pyramid -D myblog |
140 |
140 |
141 Another way is to add our cube to the instance using the cubicweb-ctl shell |
141 Another way is to add our cube to the instance using the cubicweb-ctl shell |
142 facility. It's a python shell connected to the instance with some special |
142 facility. It's a python shell connected to the instance with some special |
143 commands available to manipulate it (the same as you'll have in migration |
143 commands available to manipulate it (the same as you'll have in migration |
144 scripts, which are not covered in this tutorial). In that case, we're interested |
144 scripts, which are not covered in this tutorial). In that case, we're interested |
149 entering the migration python shell |
149 entering the migration python shell |
150 just type migration commands or arbitrary python code and type ENTER to execute it |
150 just type migration commands or arbitrary python code and type ENTER to execute it |
151 type "exit" or Ctrl-D to quit the shell and resume operation |
151 type "exit" or Ctrl-D to quit the shell and resume operation |
152 >>> add_cube('myblog') |
152 >>> add_cube('myblog') |
153 >>> |
153 >>> |
154 $ cubicweb-ctl start -D myblog |
154 $ cubicweb-ctl pyramid -D myblog |
155 |
155 |
156 The `add_cube` command is enough since it automatically updates our |
156 The `add_cube` command is enough since it automatically updates our |
157 application to the cube's schema. There are plenty of other migration |
157 application to the cube's schema. There are plenty of other migration |
158 commands of a more finer grain. They are described in :ref:`migration` |
158 commands of a more finer grain. They are described in :ref:`migration` |
159 |
159 |
223 .. sourcecode: bash |
223 .. sourcecode: bash |
224 |
224 |
225 cubicweb-ctl i18ncube myblog # build/update cube's message catalogs |
225 cubicweb-ctl i18ncube myblog # build/update cube's message catalogs |
226 # then add translation into .po file into the cube's i18n directory |
226 # then add translation into .po file into the cube's i18n directory |
227 cubicweb-ctl i18ninstance myblog # recompile instance's message catalogs |
227 cubicweb-ctl i18ninstance myblog # recompile instance's message catalogs |
228 cubicweb-ctl restart -D myblog # instance has to be restarted to consider new catalogs |
228 # instance has to be restarted to consider new catalogs |
229 |
229 |
230 You'll then be able to redefine each of them according to your needs and |
230 You'll then be able to redefine each of them according to your needs and |
231 preferences. So let's see how to do such thing. |
231 preferences. So let's see how to do such thing. |
232 |
232 |
233 Changing the layout of the application |
233 Changing the layout of the application |