File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ RUN composer install --no-dev --optimize-autoloader
3333COPY . .
3434
3535# Move vendor folder to the correct location
36- RUN mv vendor src/private/vendor
36+ RUN rm -rf src/private/vendor && mv vendor src/private/vendor
3737
3838# Set permissions
3939RUN chown -R www-data:www-data /var/www/html/src/private/uploads
Original file line number Diff line number Diff line change 1111use PDO ;
1212
1313# start vendors
14- require realpath (__DIR__ . '/vendor/autoload.php ' );
14+ $ autoloadPath = __DIR__ . '/vendor/autoload.php ' ;
15+ if (!is_file ($ autoloadPath )) {
16+ $ nestedPath = __DIR__ . '/vendor/vendor/autoload.php ' ;
17+ if (is_file ($ nestedPath )) {
18+ $ autoloadPath = $ nestedPath ;
19+ }
20+ }
21+ if (!is_file ($ autoloadPath )) {
22+ throw new \RuntimeException ('Composer autoload.php not found. ' );
23+ }
24+ require $ autoloadPath ;
1525
1626# change timezone
1727date_default_timezone_set ('Europe/Madrid ' );
You can’t perform that action at this time.
0 commit comments