#!/bin/sh

if [ "$NODE_ENV" == 'development' ]; then
  docker-entrypoint.sh strapi develop --watch-admin
elif [ "$NODE_ENV" == 'production' ]; then
  if [ -f 'admin-config.json' ]; then
    strapi config:restore --file admin-config.json -s replace
  fi
  strapi start
fi
