Skip to content

Commit

Permalink
add dollar signs
Browse files Browse the repository at this point in the history
  • Loading branch information
nhoening committed May 15, 2023
1 parent bc279fe commit e478525
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions documentation/dev/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ You can run automated tests with:

.. code-block:: bash
$ make test
$ make test
which behind the curtains installs dependencies and calls ``pytest``.
Expand All @@ -158,16 +158,16 @@ However, a test postgres database is needed to run these tests. If you have post

.. code-block:: bash
make clean-db db_name=flexmeasures_test db_user=flexmeasures_test
# the password for the db user is "flexmeasures_test"
$ make clean-db db_name=flexmeasures_test db_user=flexmeasures_test
$ # the password for the db user is "flexmeasures_test"
.. note:: The section :ref:`host-data` has more details on using postgres for FlexMeasures.

Alternatively, if you don't feel like installing postgres for the time being, here is a docker command:

.. code-block:: bash
docker run --rm --name flexmeasures-test-db -e POSTGRES_PASSWORD=flexmeasures_test -e POSTGRES_DB=flexmeasures_test -e POSTGRES_USER=flexmeasures_test -p 5432:5432 -v ./ci/load-psql-extensions.sql:/docker-entrypoint-initdb.d/load-psql-extensions.sql -d postgres:latest
$ docker run --rm --name flexmeasures-test-db -e POSTGRES_PASSWORD=flexmeasures_test -e POSTGRES_DB=flexmeasures_test -e POSTGRES_USER=flexmeasures_test -p 5432:5432 -v ./ci/load-psql-extensions.sql:/docker-entrypoint-initdb.d/load-psql-extensions.sql -d postgres:latest
.. warning:: This assumes that the port 5432 is not being used (for instance by an existing postgres database service).

Expand Down

0 comments on commit e478525

Please sign in to comment.