Apple Tree application based on Yii 2 Advanced Project Template.
The application includes three tiers: front end, back end, and console, each of which is a separate Yii application.
The template is designed to work in a team development environment. It supports deploying the application in different environments.
The application is configured as single-domain-application. Example configuration for nginx is in the /vagrant/nginx/app-single-domain.conf file.
The minimum requirement by this project template is that your Web server supports PHP 7.1
*nix-like OS
DBMS MySql 5.5+
Web-server nginx 1.16+
-
Clone this repo to your server
git clone https://github.com/mitasych/apple-tree
-
In the app-root install composer and install and update packages
php composer.phar update
-
In terminal execute the
init
command./path/to/php-bin/php /path/to/yii-application/init
-
Create a new database and adjust the
components['db']
configuration in/path/to/yii-application/common/config/main-local.php
accordingly. -
Open a console terminal, apply migrations with command
/path/to/php-bin/php /path/to/yii-application/yii migrate
-
In terminal execute the
crontab -e
command and set cron task* * * * * /path/to/php-bin/php /path/to/yii-application/yii apple/rot
login: admin
password: admin
In single-domain-application path to admin panel http(s)://your-app.domain/admin