Kod: Zaznacz cały
docker exec -u www-data supla-cloud php bin/console cache:warmup
Kod: Zaznacz cały
docker exec -u www-data supla-cloud php bin/console cache:warmup
Kod: Zaznacz cały
pi@raspberrypi:~ $ docker exec supla-cloud php bin/console cache:warmup
Error response from daemon: Container 29c69e451a8ab490000980a4bc2eba2a258582603ff15631798408ef0a89adcc is not running
Musisz najpierw odpalić image komendą docker runcino111 pisze: ↑śr lip 17, 2019 1:06 pmKod: Zaznacz cały
pi@raspberrypi:~ $ docker exec supla-cloud php bin/console cache:warmup Error response from daemon: Container 29c69e451a8ab490000980a4bc2eba2a258582603ff15631798408ef0a89adcc is not running
Kod: Zaznacz cały
docker-compose stop
docker-compose rm -f
./supla.sh start
Kod: Zaznacz cały
root@raspberrypi:/home/pi# docker exec -u www-data supla-cloud php bin/console supla:unofficial:simulate-events --dispatch
In DefinitionErrorExceptionPass.php line 37:
Cannot autowire service "SuplaBundle\Command\SimulateEventsCommand": argume
nt "$channelStateGetter" of method "__construct()" has type "SuplaApiBundle
\Model\ChannelStateGetter\ChannelStateGetter" but this class was not found.
Kod: Zaznacz cały
root@raspberrypi:/home/pi# docker exec -u www-data supla-cloud php bin/console supla:unofficial:s imulate-events --dispatch
There are no commands defined in the "supla:unofficial" namespace.
Did you mean one of these?
supla
supla:clean
supla:oauth
Kod: Zaznacz cały
docker cp events.yml supla-cloud:/var/www/cloud/src/SuplaBundle/Command/events.yml
Kod: Zaznacz cały
events:
- condition: state(5).on # when the channel with ID5 changes its state to ON
# time_conditions: "* 19 * * *" # only between 19:00 and 19:59
webhooks:https://domena/direct/7/D4M2ZmMhUNN/turn-on # execute this url
- condition: not state(1).on # when the channel with ID324 changes its state to OFF
# time_conditions: ["* 19-20 * * *", "30-59 6 * * *"] # only between 19:00-20:59 and 6:30-6:59
webhooks: https://domena/direct/8/c4FDzjZAjNygGNy/turn-on # execute these urls one by one
# - condition: state(666).hi # when the gate channel with ID 666 is opened
# webhooks: https://supla.fracz.com/api/scenes/public/0da4dbbb-5bfd-4fad-8e3c-aaa
Kod: Zaznacz cały
root@raspberrypi:/home/pi/supla-docker# ./supla.sh start
Starting SUPLA containers
Starting supla-db ... done
Starting supla-cloud ... done
Starting supla-server ... done
SUPLA containers has been started.
root@raspberrypi:/home/pi/supla-docker# docker exec -u www-data supla-cloud php bin/console supla:unofficial:simulate-events --dispatch
In Kernel.php line 766:
Unable to write in the cache directory (/var/www/cloud/var/cache/prod)