Skip to content

Configuration

Sundar Raman edited this page May 3, 2013 · 2 revisions

Configuration file

The configuration file template is etc/config.yaml.tmpl. This file is interpolated with the appropriate values during fabric deployment.

It is best to read the etc/config.yaml.tmpl file to understand all the values that need to exist for the application to run. The rcfile.sample file provides all the different interpolation variables that fabric will use.

For setting up a development environment, do the following:

  • Copy etc/config.yaml.tmpl to the root folder of your application:

    cp etc/config.yaml.tmpl config.yaml

  • Edit config.yaml to your needs

  • Start the webpy application:

    python main.py

Custom Files

For some configuration values, one could specify custom files, for instance the background image on the home page. The custom files should be put in the following location, as it is not under version control:

static/files/
Clone this wiki locally