See example below, more: https://symfony.com/doc/current/setup/web_server_configuration.html)
or use interior server (in console run php bin/console server:run, more: https://symfony.com/doc/current/setup.html)
<VirtualHost polska-press.local:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "D:/xampp_7_2/htdocs/polska-press/public"
<Directory "D:/xampp_7_2/htdocs/polska-press/public">
AllowOverride None
# Apache 2.2
Order Allow,Deny
Allow from All
# /Apache 2.2
# Apache 2.4
Require all granted
# /Apache 2.4
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
</Directory>
ServerName polska-press.local
ServerAlias polska-press.local
ErrorLog "logs/polska-press.local.error.log"
CustomLog "logs/polska-press.local.custom.log" common
</VirtualHost>
If you don't have this program, install composer from https://getcomposer.org/
If you don't have this program, install yarn from https://yarnpkg.com/
Windows: run db in main project folder
Linux: run commands from /db.bat file
php bin/console import:districts
Elastic Search allows You to search data more widely and efficient Your DB is - of course - involved, but only for replacing ids from ES into full entities
8.1 Install and run Elastic Search according to https://www.elastic.co/
- set fos_elastica.enable to 1
- change default host and port (if necessary)
php bin/console cache:clear
You can turn on/off Elastic Search support many times, but You have to clear cache each time
php bin/console fos:elastica:populate
- Elastic Search section should appear
- Queries should be shown as well
Run:
vendor\bin\simple-phpunit.bat
If you don't have xdebug you can install it or skip coverage raport by adding a --no-coverage option. Doc: https://phpunit.readthedocs.io/en/7.4/