@ -98,7 +98,7 @@ Make sure folder `migrations/versions` is not empty.
Docker
Docker
------
------
This app can be run completely using ``Docker`` and ``docker-compose``. Before starting, make sure to create a new copy of ``.env.example`` called ``.env``. You will need to start the development version of the app at least once before running other Docker commands, as starting the dev app bootstraps a necessary file, ``webpack/manifest.json``.
This app can be run completely using ``Docker`` and ``docker-compose``. Before starting, make sure to create a new copy of ``.env.example`` called ``.env``.
There are three main services:
There are three main services:
@ -128,20 +128,18 @@ Asset Management
Files placed inside the ``assets`` directory and its subdirectories
Files placed inside the ``assets`` directory and its subdirectories
(excluding ``js`` and ``css``) will be copied by webpack's
(excluding ``js`` and ``css``) will be copied by webpack's
``file-loader`` into the ``static/build`` directory, with hashes of
``file-loader`` into the ``static/build`` directory. In production, the plugin
their contents appended to their names. For instance, if you have the
``Flask-Static-Digest`` zips the webpack content and tags them with a MD5 hash.
file ``assets/img/favicon.ico``, this will get copied into something
As a result, you must use the ``static_url_for`` function when including static content,
like
as it resolves the correct file name, including the MD5 hash.