File tree 3 files changed +8
-4
lines changed
docker-config/php-prod-craft
3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
# nystudio107/devmode Change Log
2
2
3
+ ## 2.6.4 - 2022.05.02
4
+ ### Fixed
5
+ * Clean up initial check for ` composer.lock ` or ` vendor/autoload.php ` to ensure the first-time install is done
6
+
3
7
## 2.6.3 - 2022.04.28
4
8
### Changed
5
9
* Updated to Craft CMS ` 4.0.0-RC1 ` & latest Composer deps
Original file line number Diff line number Diff line change 13
13
# Ensure permissions on directories Craft needs to write to
14
14
chown -R www-data:www-data /var/www/project/cms/storage
15
15
chown -R www-data:www-data /var/www/project/cms/web/cpresources
16
- # Check for `composer.lock` & `vendor/`
16
+ # Check for `composer.lock` & `vendor/autoload.php `
17
17
cd /var/www/project/cms
18
- if [ ! -f " composer.lock" ] || [ ! -d " vendor" ]; then
18
+ if [ ! -f " composer.lock" ] || [ ! -f " vendor/autoload.php " ]; then
19
19
su-exec www-data composer install --verbose --no-progress --no-scripts --optimize-autoloader --no-interaction
20
20
# Wait until the Postgres db container responds
21
21
echo " ### Waiting for Postgres database"
Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ until eval "PGPASSWORD=$DB_PASSWORD psql -h postgres -U $DB_USER $DB_DATABASE -c
19
19
do
20
20
sleep 1
21
21
done
22
- # Wait until the `composer install` is done by looking for the `vendor/autoload.php` file
22
+ # Wait until the `composer install` is done by looking for the `vendor/autoload.php` and `composer.lock` files
23
23
echo " ### Waiting for vendor/autoload.php"
24
- while [ ! -f vendor/autoload.php ] || [ ! -f composer.lock ]
24
+ while [ ! -f " vendor/autoload.php" ] || [ ! -f " composer.lock" ]
25
25
do
26
26
sleep 1
27
27
done
You can’t perform that action at this time.
0 commit comments