I have a problem when updating with Composer.
My installation command line was this one:
php composer.phar create-project -s RC craftcms/craft $HOME/craft
As such, I tried to update, as per Ryan from Mijingo instructions:
php composer.phar update craftcms/craft
But I ended up with the following error:
Composer could not find a composer.json file in /home/me
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
I checked, composer.json
and composer.lock
are in the craft
directory, as expected.
After looking through Composer man
page and web docs, I am still clueless, as I haven't found what -s RC
are used for in the installation command. I believe understanding these (this?) switches is probably the key, but I rather ask here than making a mistake and blowing the otherwise perfectly working install. ^^
As for the CP, it doesn't work either, but that is not a surprise given the command line didn't and that I am using the php composer.phar
method rather than the sole composer
one.
composer update
in yourcraft
directory where yourcomposer.json
file is? You can install it withphp composer.phar create-project -s RC craftcms/craft $HOME/craft
but you should still be able to update with the normal composer. Are there certain reasons why you don't want to do it?composer update
notphp composer.phar