Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 69f05288 authored by Muhammad Rafif Elfazri's avatar Muhammad Rafif Elfazri
Browse files

Script for migrating and start the server

parent d16a6af5
No related branches found
No related tags found
No related merge requests found
# 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment