Make sure the newspaper is added in newspapers table in db.
Make sure the product/domain is added with the correspondig newspaper_id in products table.
To create the default config file for the domain, go to Newspapers page in BO3 UI and click on the newspaper products icon. Click Edit button on the domain you want to integrate and click the save on the modal. A default config file will be created in app/config/domains folder.
Make sure the correct url for header/footer is provided in url field in the config file.
Run:
php artisan hf:take {product_id}
If everything is fine a hash will be outputed in console, referencing the current process ’number’ which is responsible for downloading the domain files (htmls, css, js, etc.);
php artisan processing:check
This will show you the current progress on the processing
php artisan hf:deploy {product_id}
This will shoud a list with folders for the product/domain which contains the main html,css,js files. For example 2021_10_08_09_04 . These folders are available in storage/app/hf/{product_domain}/.
php artisan hf:deploy {product_id} {folder_name}
For example:
php artisan hf:deploy 354 2021_10_08_09_04
Create folder for the domain/product views in resources/views/domains. For folder name use the domain name but replace the dots (.) with underscore. E.g: test.mydomain.com should have views folder resources/views/domains/test_mydomain_com
Register the routes for this domain in: routes/domains_web.
@TODO: