Table Of Contents

Previous topic

Usage

Next topic

Templates

This Page

Configuration

Makesite deploy options are specified on the command line and configuration files.

Configuration files

Makesite configuration files in INI format and must have a makesite.ini name. Each can contain two sections: Main and Templates. Section Main contain project deploy options. Section Templates contain custom templates paths.

The configuration files are loaded in the fololowing order:

  1. Default configuration file: makesite.ini from makesite;
  2. From user home directory if exists;
  3. From base projects deploy dir SITES_HOME if exists;
  4. From path of -c option if exists;
  5. From project source after load, if exists.

Settings from each next configuration file owerwrites previous.

Command line

-p <sites_path>, --path=<sites_path>

Path to projects dir, required if not set $MAKESITE_HOME. Saved in makesite_home variable.

-b <branch name>, --branch=<branch_name>

Deployed branch of project, default is ‘master’. Saved in branch variable.

-t <templates>, --tempalte=<templates>

One or more template names separated by commas. Saved in template variable.

-c <path_to_config>, --config=<path_to_config>

Path to custom config file.

-m <module_name>, --module=<module_name>

Deploy makesite built-in module.

-s <source_path>, --source=<source_path>

Source path. VCS address starts with prefix: git+git://github.com/... Saved in src variables.

Configuration options

Note

In options you can use variables from command line and deploy_dir:

domain=%(branch)s.%(project)s.klen.xxx
template

Default: db-postgres,django,zeta,uwsgi

Define deploy templates, if not exist -t

site_user

Default: www-data

Define deploy user. From him runned processes and deployed templates.

site_group

Default: www-data

Define deploy group.

port

Default: 80

Define deploy port, used for servers configuration.

domain

Default: example.com

Define deploy domain name, used for servers configuration.

mode

Default: dev

Im use it to switch django settings files ex.

Default makesite configuration

# Base makesite INI file

# ==============
# Base settings
[Main]
template=db-postgres,django,zeta,uwsgi
site_user=www-data
site_group=www-data
port=80
domain=example.com
mode=dev

# This section uses for custom templates Ex. custom_name=<path_to_custom>
[Templates]

# This section uses for define alias. Ex. prod = update server.master -H web.prod.server
[alias]