I've checked the docs but couldn't find anything.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- ihayredinov@ihayredinov
ihayredinov - 1 like
- Cim@manacim
Cim - 0 likes
- ihayredinov@ihayredinov
ihayredinov - 1 like
- Cim@manacim
Cim - 0 likes
- ihayredinov@ihayredinov
ihayredinov - 1 like
- Cim@manacim
Cim - 0 likes
- Juho Jaakkola@juho.jaakkola
Juho Jaakkola - 0 likes
- Juho Jaakkola@juho.jaakkola
Juho Jaakkola - 0 likes
- Commit both composer.json and composer.lock to git
- Go to your production environment, pull the changes from git
- Run "composer install" to install the updated versions to the production environment
- Now both environments have exactly the same versions of all packages! Cool!
- Juho Jaakkola@juho.jaakkola
Juho Jaakkola - 0 likes
- Jaqueline@Jaqueline
Jaqueline - 0 likes
You must log in to post replies.Did you install Elgg with composer? If so just run composer update from the root directory.
If not, install Elgg using starter project and then copy custom plugins into mod.
No I didn't install Elgg with composer. I'm just tired of using SFTP, it's too long and time consuming.
@manacim SFTP is dead to me :)
@ihayredinov is it really dead technology? Lol. Anyways how do I do this?
Back up. Install Elgg with composer using starter project, copy engine/settings, .htaccess and custom plugins (or require them with composer as well). You are good to go.
And what's the command to update?
You can update single package (plugin, library, elgg core) with:
Or you can update all packages with:
The version constraints in composer.json define how much newer version the command is allowed to install.
Exact version definition doesn't trigger update at all, unless you first manually update the number:
With more advanced operators, you can define version ranges. For example this allows composer to update to any version that is greater than 2.1.0 but smaller than 3.0.0. For example from 2.1.0 to 2.9.5:
After running "composer update" in a development environment:
Further reading:
https://ilikekillnerds.com/2014/09/should-you-commit-composer-lock-into-your-git-repository/
https://blog.engineyard.com/2014/composer-its-all-about-the-lock-file
See also the starter project of the elgg.org site itself: https://github.com/elgg/www.elgg.org
[Moderator: this comment was off-topic. It was moved to its own topic. Read it here.]