[GH-ISSUE #167] Clean up production after install #116

Closed
opened 2026-02-26 02:32:11 +03:00 by kerem · 1 comment
Owner

Originally created by @Beanow on GitHub (Dec 30, 2015).
Original GitHub issue: https://github.com/koel/koel/issues/167

It's an enhancement but could be nice for clean installations.
After the installation is configured and working, run the following to prune dev/compile dependencies.

composer update --no-dev --no-scripts && rm -Rf node_modules bower_components npm-debug.log

Aside from removing a bunch of dev dependencies for disk space and security, this will also make a smaller composer autoload file so it's a little performance boost.

If you need to regenerate the frontend, like for an update from the git repository, you will need to install and later delete them again.

I'm not sure if you want to use this suggestion and how. Maybe it's for the wiki, maybe part of the install scripts... That's up to you.

Originally created by @Beanow on GitHub (Dec 30, 2015). Original GitHub issue: https://github.com/koel/koel/issues/167 It's an enhancement but could be nice for clean installations. After the installation is configured and working, run the following to prune dev/compile dependencies. ``` sh composer update --no-dev --no-scripts && rm -Rf node_modules bower_components npm-debug.log ``` Aside from removing a bunch of dev dependencies for disk space and security, this will also make a smaller composer autoload file so it's a little performance boost. If you need to regenerate the frontend, like for an update from the git repository, you will need to install and later delete them again. I'm not sure if you want to use this suggestion and how. Maybe it's for the wiki, maybe part of the install scripts... That's up to you.
kerem closed this issue 2026-02-26 02:32:11 +03:00
Author
Owner

@phanan commented on GitHub (Jan 3, 2016):

Don't think this is needed actually.

<!-- gh-comment-id:168465233 --> @phanan commented on GitHub (Jan 3, 2016): Don't think this is needed actually.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#116
No description provided.