Skip to content

EN.03.02.Static Files

stormcat24 edited this page Aug 12, 2014 · 1 revision

Configuration to renpond static files on Aeromock.

project.yaml

When configure static section at project.yaml, be able to respond to static files.

static.root

Root directory of static files. Specify a relative path from project root path.

Example

static:
  root: ../static

If specified path of project.yaml is path1/path2/project.yaml, path1/static/ is static file root directory.

Access

Access path from static files root. You should access http://localhost:3183/img/test.png To browse /static/img/test.png.

Restriction

Can not publish directory named aeromock at static files root below. Because bundled images or css by Aeromock has published http://localhost:3183/aeromock/ .

Clone this wiki locally