Skip to content

Commit

Permalink
Fix commands for none unix based terminals (#821)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz authored Nov 21, 2024
1 parent a168d7d commit 39efc72
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 26 deletions.
6 changes: 3 additions & 3 deletions book/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ This command will bootstrap a new project in the directory ``my-project``.

.. code-block:: bash
bin/console sulu:admin:download-language
php bin/console sulu:admin:download-language
Webspaces
---------
Expand Down Expand Up @@ -125,7 +125,7 @@ default data:

.. code-block:: bash
bin/adminconsole sulu:build dev
php bin/adminconsole sulu:build dev
.. caution::

Expand All @@ -134,7 +134,7 @@ default data:

.. code-block:: bash
bin/adminconsole sulu:build prod
php bin/adminconsole sulu:build prod
Optionally, you can store the content of your website (all tables starting with
``phpcr_``) in `Apache Jackrabbit`_. We'll get back to that later.
Expand Down
4 changes: 2 additions & 2 deletions book/templates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ Here is a table with the content types shipped in Sulu core:

.. code-block:: bash
bin/adminconsole sulu:content:types:dump
php bin/adminconsole sulu:content:types:dump
Many content types can be configured by passing parameters in the element
``<params>``. For a single select, for example, you need to set the possible
Expand Down Expand Up @@ -381,7 +381,7 @@ from within a block.

.. note::

Because the ``&`` character needs to be escaped inside of XML files, you have to use ``AND`` instead of ``&&``
Because the ``&`` character needs to be escaped inside of XML files, you have to use ``AND`` instead of ``&&``
if you want to connect conditions using a logical and. Additionally, you can use ``OR`` instead of ``||``.

Language Independent Properties
Expand Down
2 changes: 1 addition & 1 deletion cookbook/build-admin-frontend.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Sulu is shipped with a build in command to update the build.

.. code-block:: bash
bin/adminconsole sulu:admin:update-build
php bin/adminconsole sulu:admin:update-build
.. note::

Expand Down
14 changes: 7 additions & 7 deletions cookbook/dump-sitemap.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ Each provider returns mostly 50000 links which can return many
links, which would take a bigger amount of time. The Google bot
does not wait a long time for the sitemap to be returned.

To improve the speed of the sitemap page, Sulu provides a command for pre-generating
To improve the speed of the sitemap page, Sulu provides a command for pre-generating
the page and cache it on the filesystem. The should be called in a cron-job to keep the
pre-generated sitemap up to date.

.. note::

This is a performance optimization for very big websites. In 99% of the cases, the
optimization is not necessary and the sitemap can be generated on the fly.
This is a performance optimization for very big websites. In 99% of the cases, the
optimization is not necessary and the sitemap can be generated on the fly.

.. code-block:: bash
bin/websiteconsole sulu:website:dump-sitemap
php bin/websiteconsole sulu:website:dump-sitemap
If you use the ``{host}`` replacer in your webspace url
configuration, you need to set the Symfony ``default_uri`` config option
for generating the URLs of your sitemap items via a command.
Have a look at the official Symfony Documentation about
for generating the URLs of your sitemap items via a command.
Have a look at the official Symfony Documentation about
`Generating URLs in Commands`_ for more information.

.. code-block:: yaml
Expand Down Expand Up @@ -54,7 +54,7 @@ Switch back to on the fly generation
If you want to switch back to on the fly generation, you need
to remove the exist pre-generated sitemaps from the ``var`` directory.

By default, pre-generated sitemaps are stored in the following directory in the
By default, pre-generated sitemaps are stored in the following directory in the
``prod`` environment:

.. code-block:: bash
Expand Down
22 changes: 11 additions & 11 deletions cookbook/jackrabbit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,36 +76,36 @@ data before changing the configuration:

.. code-block:: bash
bin/adminconsole doctrine:phpcr:workspace:export -p /cmf cmf.xml
bin/websiteconsole doctrine:phpcr:workspace:export -p /cmf cmf_live.xml
bin/adminconsole doctrine:phpcr:workspace:export -p /jcr:versions jcr.xml
php bin/adminconsole doctrine:phpcr:workspace:export -p /cmf cmf.xml
php bin/websiteconsole doctrine:phpcr:workspace:export -p /cmf cmf_live.xml
php bin/adminconsole doctrine:phpcr:workspace:export -p /jcr:versions jcr.xml
Then change the configuration as explained in the above Configuration section, and
then execute the following command to initialize the jackrabbit workspaces for sulu:

.. code-block:: bash
bin/adminconsole cache:clear
bin/adminconsole sulu:document:initialize
php bin/adminconsole cache:clear
php bin/adminconsole sulu:document:initialize
Now executed these commands to clear any previously existing data (first you should make
sure that you really don't need this data anymore).

.. code-block:: bash
bin/adminconsole doctrine:phpcr:node:remove /cmf
bin/websiteconsole doctrine:phpcr:node:remove /cmf
php bin/adminconsole doctrine:phpcr:node:remove /cmf
php bin/websiteconsole doctrine:phpcr:node:remove /cmf
# the following command can fail if the node not exist ignore the error then:
bin/adminconsole doctrine:phpcr:node:remove /jcr:versions
php bin/adminconsole doctrine:phpcr:node:remove /jcr:versions
After that you can import the exported data from ``doctrinedbal`` into ``jackrabbit``
by running the following commands:

.. code-block:: bash
bin/adminconsole doctrine:phpcr:workspace:import -p / cmf.xml
bin/websiteconsole doctrine:phpcr:workspace:import -p / cmf_live.xml
bin/adminconsole doctrine:phpcr:workspace:import -p / jcr.xml
php bin/adminconsole doctrine:phpcr:workspace:import -p / cmf.xml
php bin/websiteconsole doctrine:phpcr:workspace:import -p / cmf_live.xml
php bin/adminconsole doctrine:phpcr:workspace:import -p / jcr.xml
.. _`Jackrabbit`: https://jackrabbit.apache.org/jcr/index.html
.. _`environment variable`: https://symfony.com/doc/4.4/configuration.html#config-env-vars
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ See the :doc:`subscribers` chapter for more information.

.. code-block:: bash
bin/adminconsole your:command
php bin/adminconsole your:command
The Path Builder
----------------
Expand Down
2 changes: 1 addition & 1 deletion upgrades/upgrade-1.6-2.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ necessary should be to execute the migrations we have written:

.. code-block:: bash
bin/console phpcr:migrations:migrate
php bin/console phpcr:migrations:migrate
.. _UPGRADE.md file: https://github.com/sulu/sulu/blob/2.0.12/UPGRADE.md
.. _sulu/skeleton: https://github.com/sulu/skeleton
Expand Down

0 comments on commit 39efc72

Please sign in to comment.