Ich komme leider nicht mehr weiter.
Die Seite http://wiki.volkszaehler.org/howto/git kenne ich bald auswendig. (ist die nicht mehr aktuell?)
Probleme macht nur das Abhängigkeiten aktualisieren mit dem composer.
sudo composer install --no-dev
Hier der Verlauf:
pi@PI3:~ $ cd /var/www
pi@PI3:/var/www $ sudo cp -r volkszaehler.org vz.org.bak
pi@PI3:/var/www $ cd volkszaehler.org
pi@PI3:/var/www/volkszaehler.org $ sudo git pull
remote: Counting objects: 234, done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 234 (delta 114), reused 107 (delta 107), pack-reused 111
Receiving objects: 100% (234/234), 107.69 KiB | 0 bytes/s, done.
Resolving deltas: 100% (168/168), completed with 47 local objects.
From https://github.com/volkszaehler/volkszaehler.org
38d91a1..283cf03 master -> origin/master
Updating 38d91a1..283cf03
Fast-forward
.travis.yml | 33 +++--
composer.json | 16 ++-
etc/volkszaehler.conf.template.php | 8 ++
htdocs/frontend/javascripts/entities.js | 136 +++++-------------
htdocs/frontend/javascripts/entity.js | 125 +++++++---------
htdocs/frontend/javascripts/functions.js | 82 +++++------
htdocs/frontend/javascripts/init.js | 2 +-
htdocs/frontend/javascripts/options.js | 6 +-
htdocs/frontend/javascripts/wui.js | 67 ++++++---
htdocs/frontend/vendor/flot/flot.min.js | 6 +-
htdocs/frontend/vendor/flot/jquery.flot.js | 10 +-
lib/Controller/CapabilitiesController.php | 56 ++++++--
lib/Controller/DataController.php | 8 ++
lib/Controller/EntityController.php | 43 +++---
lib/Definition/EntityDefinition.json | 19 ++-
lib/Definition/PropertyDefinition.json | 1 -
lib/Definition/PropertyDefinition.php | 9 +-
lib/Model/Entity.php | 6 +-
lib/Model/Property.php | 5 -
lib/Router.php | 42 +++---
lib/Server/HttpReceiver.php | 118 +++++++++++++++
lib/Server/{PushHub.php => MiddlewareAdapter.php} | 161 +++++++++------------
lib/Server/PushTransportInterface.php | 34 +++++
lib/Server/WampClientAdapter.php | 109 ++++++++++++++
lib/Server/WsClientAdapter.php | 73 ++++++++++
lib/Util/Debug.php | 4 +-
lib/View/JSON.php | 43 ++----
misc/tools/install.sh | 2 +-
misc/tools/push-server.md | 167 ++++++++++++++++++++++
misc/tools/push-server.php | 149 +++++++++----------
test/EntityTest.php | 36 ++++-
test/ProtocolTest.php | 32 ++++-
32 files changed, 1071 insertions(+), 537 deletions(-)
create mode 100644 lib/Server/HttpReceiver.php
rename lib/Server/{PushHub.php => MiddlewareAdapter.php} (54%)
create mode 100644 lib/Server/PushTransportInterface.php
create mode 100644 lib/Server/WampClientAdapter.php
create mode 100644 lib/Server/WsClientAdapter.php
create mode 100644 misc/tools/push-server.md
pi@PI3:/var/www/volkszaehler.org $ sudo composer install --no-dev
sudo: composer: command not found
pi@PI3:/var/www/volkszaehler.org $ sudo php composer.phar install
Warning: This development build of composer is over 60 days old. It is recommend
to update it by running "composer.phar self-update" to get the latest version.
[RuntimeException]
The lock file does not contain require-dev information, run install with the --no-dev option or run update to install those packages.
pi@PI3:/var/www/volkszaehler.org $ sudo php composer.phar self-update
Updating to version 75074382de9d7b61c041e494aee123477ae01853.
Downloading: 100%
Use composer self-update --rollback to return to version dfd61a53d02cf76c4ab5135846424d8543da0028
pi@PI3:/var/www/volkszaehler.org $ sudo php composer install --no-dev
Could not open input file: composer
pi@PI3:/var/www/volkszaehler.org $ sudo php composer.phar install
Do not run Composer as root/super user! See https://getcomposer.org/root for details
[RuntimeException]
The lock file does not contain require-dev information, run install with the --no-dev option or run update to install those packages.
pi@PI3:/var/www/volkszaehler.org $ php composer.phar install
[RuntimeException]
The lock file does not contain require-dev information, run install with the --no-dev option or run update to install those packages.
pi@PI3:/var/www/volkszaehler.org $ php composer.phar install --no-dev
Loading composer repositories with package information
Installing dependencies from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Nothing to install or update
[ErrorException]
file_put_contents(/var/www/volkszaehler.org/vendor/composer/installed.json): failed to open stream: Permission denied
pi@PI3:/var/www/volkszaehler.org $ php composer.phar install
[RuntimeException]
The lock file does not contain require-dev information, run install with the --no-dev option or run update to install those packages.
pi@PI3:/var/www/volkszaehler.org $ php composer.phar install --no-dev
Loading composer repositories with package information
Installing dependencies from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Nothing to install or update
[ErrorException]
file_put_contents(/var/www/volkszaehler.org/vendor/composer/installed.json): failed to open stream: Permission denied
pi@PI3:/var/www/volkszaehler.org $ sudo su
root@PI3:/var/www/volkszaehler.org# php composer.phar install --no-dev
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Installing dependencies from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Nothing to install or update
Package guzzle/common is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Package guzzle/stream is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Package guzzle/parser is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Package guzzle/http is abandoned, you should avoid using it. Use guzzle/guzzle instead.
Generating autoload files
> php -r "@copy('vendor/andig/dbcopy/dbcopy.php', 'misc/tools/dbcopy.php');"
--------------------
Hier traue ich mich nicht mehr weiter. Ich weiß nicht wie man den Composer richtig aufrufen muss.
Diese [RuntimeException]. und Warning werde ich ohne Hilfe nicht los.
Jemand müsste bitte die Anleitung aktualisieren, damit Laien wie ich mit dem aktuellen Image klar kommen.
Vielleicht ist ja auch ein Volkszähleraktualisierungsscript der bessere Weg.
Vielen im Vorraus!