mirror of
https://github.com/bitnami/containers.git
synced 2026-03-07 01:07:20 +08:00
Split DB container from app container
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user