Show pageOld revisionsBacklinksCite current pageBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ## Instructions ### Edit hosts file add ```bash 127.0.0.1 fitness-marketplace.test ``` #### Build and run docker containers ```shell script cd docker # Copy .env.example to .env and set UID and username # Find user ID with command `id -u ubuntu` docker-compose up -d ``` #### Start up the project ` docker-compose exec app composer startup ` #### Link to swagger ` http://fitness-marketplace.test:8083/api/documentation ` #### Testing credentials - admin `administrator@telego.rs:testeras` - user `test@server.com:testeras` #### Console debug ```shell script PHP_IDE_CONFIG=serverName=fitness-marketplace.test \ php \ -dxdebug.remote_enable=1 \ -dxdebug.remote_port=9000 \ -dxdebug.remote_host=host.docker.internal \ -dxdebug.remote_connect_back=0 \ -dxdebug.remote_autostart=1 \ -dxdebug.idekey=fit_debug_id \ artisam user-package:renew ``` #### Watch jobs queue ```shell script docker-compose exec app php artisan queue:listen ``` ### Start queue worker ```shell script docker-compose exec app php artisan queue:work ``` ### To list failed jobs ```shell script docker-compose exec app php artisan queue:failed ``` ### Log to specific channel ```php use Illuminate\Support\Facades\Log; Log::channel('google')->debug('test google log'); ``` ### PHPSTAN code check ```shell script docker-compose exec app composer phpstan ``` ### Run fresh migrations on server ```shell script php artisan migrate:fresh --seed --database=master php artisan db:seed --class=TestDataSeeder php artisan db:seed --class=WhiteLabelApplicationSeeder ``` /var/www/html/data/pages/readme.txt Last modified: 2021/03/24 09:50(external edit)