#!/bin/sh

if [ ! -f ".envrc.local" ]; then
  cp .envrc.local.template .envrc.local
  echo ".envrc.local was created from template, please add your credentials and customize to your environment"
fi

if [ ! -f ".envrc.local.backends" ]; then
  cp .envrc.local.backends.template .envrc.local.backends
  echo ".envrc.local.backends was created from template, please use it to en-/disable local backend services to customize to your development environment"
fi

export PATH=./helpers:"$PATH"

source_env_if_exists .envrc.local
source_env_if_exists .envrc.local.backends