Sha256: 8485d0f902896deb50e8285561c22f89c8ec33f99742b28d1a01d94cd3d10343

Contents?: true

Size: 638 Bytes

Versions: 3

Compression:

Stored size: 638 Bytes

Contents

#!/bin/bash
#
# The start up script for the web service defined for Compose.
#
# It attempts to tidy up any orphaned PID files created by the app before
# calling the CMD as defined in the Dockerfile that uses this script as 
# an ENTRYPOINT.

if [ -f tmp/pids/server.pid ]; then
  echo "Removing server.pid file"
  rm tmp/pids/server.pid
fi

# Dependencies are managed as part of the development workflow on mounted volumes. As such, they 
# are installed on container start-up. If the mounted volumes already include the dependencies, then
# this step should not take a lot of time.
bundle install
yarn install --check-files

exec "$@"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wellcar-0.0.3 lib/wellcar/templates/docker-entrypoint.sh.erb
wellcar-0.0.2 lib/wellcar/templates/docker-entrypoint.sh.erb
wellcar-0.0.1 lib/wellcar/templates/docker-entrypoint.sh.erb