INCTRUCTIONS:
- Download the project.
- Configurate your web-server, preferably use Apache as a webserver.
- Make an empty MySQL-compatible database named 'pora_db' with 'root' user and blank password or make changes to a db.php config file.
- Install a composer if needed and run 'composer update' inside the project.
- Run requirments.php to check whether additional php packages are needed and install them.
- Use 'yii migrate' console command and apply all migrations.
- For now the project should run blank main page with just a layout template applied.
- Hit the
More posts
link at the top-right corner of the page, this will add a job for a parser in the yii-queue. - Run 'yii queue/info' in console to check if the job was added.
- Add a new line in a crontab containing:
* * * * * php /path/to/websites/location/poravinternet.loc/yii queue/run
This would add an each minute cron execution of provided script, i. e. running yii-queue job tasks.
- After a single execution of the parser script a bunch of new posts and their categories would be added to a project's database and an e-mail would be sent to me, indicating that you haven't broke my project yet...
- Have a nice day!