#!/bin/sh
set -e

# See https://github.com/docker/compose/issues/1393
# See http://stackoverflow.com/questions/35022428
readonly WEB_HOME=/cyber-dojo
rm -f ${WEB_HOME}/tmp/pids/server.pid

export CYBER_DOJO_CUSTOM_START_POINTS_CLASS=CustomStartPointsService
export CYBER_DOJO_EXERCISES_START_POINTS_CLASS=ExercisesStartPointsService

export CYBER_DOJO_LANGUAGES_CLASS=LanguagesService
export CYBER_DOJO_LANGUAGES__START_POINTS_CLASS=LanguagesStartPointsService

export CYBER_DOJO_AVATARS_CLASS=AvatarsService
export CYBER_DOJO_DIFFER_CLASS=DifferService
export CYBER_DOJO_RAGGER_CLASS=RaggerService
export CYBER_DOJO_RUNNER_CLASS=RunnerService
export CYBER_DOJO_SAVER_CLASS=SaverService
export CYBER_DOJO_ZIPPER_CLASS=ZipperService

rails server \
  --environment=production

#!/bin/sh
set -e

# See https://github.com/docker/compose/issues/1393
# See http://stackoverflow.com/questions/35022428
readonly WEB_HOME=/cyber-dojo
rm -f ${WEB_HOME}/tmp/pids/server.pid

export CYBER_DOJO_CUSTOM_START_POINTS_CLASS=CustomStartPointsService
export CYBER_DOJO_EXERCISES_START_POINTS_CLASS=ExercisesStartPointsService

export CYBER_DOJO_LANGUAGES_CLASS=LanguagesService
export CYBER_DOJO_LANGUAGES_START_POINTS_CLASS=LanguagesStartPointsService

export CYBER_DOJO_AVATARS_CLASS=AvatarsService
export CYBER_DOJO_DIFFER_CLASS=DifferService
export CYBER_DOJO_RAGGER_CLASS=RaggerService
export CYBER_DOJO_RUNNER_CLASS=RunnerService
export CYBER_DOJO_SAVER_CLASS=SaverService
export CYBER_DOJO_ZIPPER_CLASS=ZipperService

rails server \
  --environment=production

Delete rogue underscore in env-var
Delete rogue underscore in env-var
