Skip to content

Tietokilta/tikweb-cms

Repository files navigation

tietokilta.fi

Quality Gate Status

Requirements

  • Docker
  • Docker Compose
  • NPM

Setup

# Start the database
docker-compose up -d

# Set the default dotenv configuration
mv .env.example .env

# Start the CMS app
npm install
npm run build
npm run config-restore
npm run develop

Important: Go to the strapi admin panel at http://localhost:1337 and go to Settings > Internationalization and add Finnish (fi) as a locale. Otherwise your models will not show up in Content Manager.

Settings dump

Strapi saves some settings in the database. In order to propagate these to the repository and eventually production, dump the settings using:

npm run config-dump

and commit the file (strapiConfig.json) to git. In order to restore configuration, run:

npm run config-restore

Configuration is restored automatically on docker container start (so e.g. in production).