Skip to content

Run students' composer on the web server, not in the sandbox - #367

Merged
AydinHassan merged 2 commits into
onlinefrom
composer-on-host
Nov 1, 2026
Merged

AydinHassan merged 2 commits into
onlinefrom
composer-on-host

Conversation

@AydinHassan

Copy link
Copy Markdown
Member

Uses php-workshop's new Composer class (php-school/php-workshop#342): ProjectUploader runs composer update on this machine with --no-plugins --no-scripts, and vendor is copied into the sandbox with the solution. upload() no longer takes a sandbox, so CloudInstalledWorkshop::getSandbox() goes.

Supersedes #366.

Before deploying: the PHP-FPM user needs composer on its PATH and a writable composer cache folder.

@AydinHassan
AydinHassan merged commit c3b396b into online Nov 1, 2026
3 checks passed
@AydinHassan
AydinHassan deleted the composer-on-host branch November 1, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant