git clone https://github.com/uktrade/icms.git
cd icms
make debug
Go to url http://localhost:8080
Above script will start a PostgreSQL database and ICMS app in debug mode. In order to run with no debug and Gunicorn server for a production-like environment use:
make run
Make sure to rebuild the image if new dependencies are installed and added to requirements.txt
make build
or build and run using:
make build debug
or
make build run
| Environment variable | Default | Notes |
|---|---|---|
| ICMS_DEBUG | False | |
| ICMS_WEB_PORT | 8080 | |
| DATABASE_URL | postgres://postgres@db:5432/postgres | Format postgres://username/password@host:port/database |
| ICMS_MIGRATE | True | Runs Django migrate before starting the app |
| ICMS_SECRET_KEY | random | Django secret key |
| ICMS_ALLOWED_HOSTS | localhost | Comma separated list of hosts |