Fakultas Ilmu Komputer UI

Commit 69f05288 authored by Muhammad Rafif Elfazri's avatar Muhammad Rafif Elfazri
Browse files

Script for migrating and start the server

parent d16a6af5
# 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"
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment