Restarting the Platform
Every time you change .env variables / update the platform version / install a package, for any changes to take effect, the workers need to be restarted:
-
attach to your workers tmux sessions:
tmux a -t workers
-
Switch to the queue in the bottom panel with
ctrl-b down-arrow
and then pressctrl-c
. This will stop the worker from running. -
Restart the queue:
cd /var/www/laravel/ php artisan queue:work
-
Switch to the ingest panel with
ctrl-b up-arrow
and then pressctrl-c
. This will stop the ingest from running. -
Restart the syncing process:
cd /var/www/laravel/ php artisan platform:sync
Once the sync is complete run the ingest worker command to start receiving and processing blockchain events:
php artisan platform:ingest
-
If the Platform Decoder also needs a restart, switch to the decoder panel with
ctrl-b up-arrow
and then pressctrl-c
. This will stop the decoder from running. -
Restart the decoder:
cd ~/enjin/platform-decoder ./bin/server
Updated 2 months ago