Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

06.07 Tasks

stuindhamma edited this page Jul 29, 2014 · 1 revision

SuttaCentral use Invoke to organize frequently used tasks and commands.

To get a list of commands:

invoke --list

To run a command:

invoke <command>

You can also use the shortcut inv:

inv <command>

To get help for a command:

invoke --help <command>

Basics

To run the local development server:

invoke server

To run the test suite:

invoke test

To re-populate the database with the latest data:

invoke db.reset

To build the dictionary:

invoke dictionary.build

To build the search index:

invoke search.index

Deployment

To deploy changes to staging:

invoke deploy.staging.full

To deploy changes to production:

invoke deploy.production.full

If there are only minor changes, you can run the following command which should minimize server downtime:

invoke deploy.production.quick

You can deploy only text changes with:

invoke deploy.production.text

Fonts

To download non-free fonts from the production server to your local development box:

invoke fonts.download_nonfree
Clone this wiki locally