originalsystems/yii2-app-template

Custom application template

v1.4.1 2018-10-01 05:36 UTC

This package is auto-updated.

Last update: 2024-04-29 03:35:30 UTC


README

Current template based on php7.1, nginx (with http_image_filter_module), PostgreSQL and redis.

Create project

Creating project, based on current template possible with one composer command

composer create-project originalsystems/yii2-app-template

First steps after create new project:

  • run composer install, it should create local config files for current instance of application.
  • create PostgreSQL database for project
  • edit .env file with your project instance configurations, like host name, db credentials and etc.
  • optional run ./vendor/bin/generate-nginx-vhost to generate nginx vhost configuration file, based on .env file configurations.
  • optional run ./vendor/bin/generate-cron to generate cron template for execute application tasks, placed in ./cron directories.