Fakultas Ilmu Komputer UI

entrypoint.sh 440 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File: docker_phx/entrypoint.sh
#!/bin/bash
# docker entrypoint script.

# assign a default for the database_user
# DB_USER=${DATABASE_USER:-postgres}

# # wait until Postgres is ready
# while ! pg_isready -q -h $DATABASE_HOST -p 5432 -U $DB_USER
# do
#   echo "$(date) - waiting for database to start"
#   sleep 2
# done

bin="/app/bin/diskuy"
eval "$bin eval \"Diskuy.Release.migrate\""
# start the elixir application
exec "$bin" "start"