Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/config_flags.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ The following flags are a list of all the currently supported options that can b
- **REMOVE_FILES** : Use REMOVE_FILES=0 to prevent the script from clearing out /var/www/html (useful for working with local files)
- **APPLICATION_ENV** : set this to development to prevent composer deleteing local dev dependancies
- **SKIP_CHOWN** : set to 1 to avoid running chown -Rf on /var/www/html
- **SKIP_COMPOSER** : set to 1 to avoid installing composer
18 changes: 10 additions & 8 deletions scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,16 @@ if [[ "$RUN_SCRIPTS" == "1" ]] ; then
fi
fi

# Try auto install for composer
if [ -f "/var/www/html/composer.lock" ]; then
if [ "$APPLICATION_ENV" == "development" ]; then
composer global require hirak/prestissimo
composer install --working-dir=/var/www/html
else
composer global require hirak/prestissimo
composer install --no-dev --working-dir=/var/www/html
if [ -z "$SKIP_COMPOSER" ]; then
# Try auto install for composer
if [ -f "/var/www/html/composer.lock" ]; then
if [ "$APPLICATION_ENV" == "development" ]; then
composer global require hirak/prestissimo
composer install --working-dir=/var/www/html
else
composer global require hirak/prestissimo
composer install --no-dev --working-dir=/var/www/html
fi
fi
fi

Expand Down