Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Commit

Permalink
Load environment and config from docker secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
adammcmaster committed Jan 11, 2018
1 parent cf4553a commit 0161be5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ then
exit 1
fi

if [ -f /run/secrets/environment ]
then
source /run/secrets/environment
fi

if [ ! -d /config/ ]
then
ln -s /run/secrets/ /config
fi

ln -fs /config/* ./config/

exec bundle exec rails server -p 80

0 comments on commit 0161be5

Please sign in to comment.