Skip to content

Latest commit

 

History

History
78 lines (54 loc) · 1.71 KB

getting-started.md

File metadata and controls

78 lines (54 loc) · 1.71 KB

Getting started

We use the "Scripts To Rule Them All" pattern to standardise the common commands we have to use.

Setup the application:

$ script/setup

Start the server:

$ script/server

Start a console:

$ script/console

Run the tests:

$ script/test

Update application to run for its current checkout:

$ script/update

With Docker

Docker is made available to run these commands locally as containerisation MUST be used on CI and SHOULD be used on live environments. Using Docker locally provides the strongest parity between development and live. It can also be more stable to get running on your machine.

Running the tests regularly should be done without Docker as it is much faster.

Prerequisites

$ brew install --cask docker

Usage

Occassional use

Use the --docker switch:

$ script/test --docker

Regular use

You can set PREFER_DOCKER_FOR_DXW_RAILS=1 in your env to set this preference automatically.

Switches will take priority over any default preference. For example, with PREFER_DOCKER_FOR_DXW_RAILS=1 set you can run --no-docker to run without Docker.