Split DB container from app container

This commit is contained in:
David Gonzalez
2017-02-24 10:49:54 +00:00
parent 36117e25da
commit fd19ee2b21
4 changed files with 12 additions and 9 deletions

View File

@@ -7,13 +7,12 @@ check_for_updates &
PROJECT_DIRECTORY=/app/$CODEIGNITER_PROJECT_NAME
DEPLOY="$@"
nami restart mariadb
echo "Starting application ..."
if [ "$1" == "php" -a "$2" == "-S" ] ; then
if [ ! -d $PROJECT_DIRECTORY ] ; then
log "Creating example Codeigniter application"
nami execute codeigniter createProject $CODEIGNITER_PROJECT_NAME
nami execute codeigniter createProject --databaseServerHost $MARIADB_HOST --databaseServerPort $MARIADB_PORT --databaseAdminUser $MARIADB_USER $CODEIGNITER_PROJECT_NAME | grep -v undefined
log "Codeigniter app created"
else
log "App already created"