Skip to content

davit95/yii

Repository files navigation

+## PLG Application setup ## 1.set database credentails in common/config/main.local php db_name db password host name 2.call php init in server folder ,then choose 1 for production 3.call this command line for service migrations

  • php yii migrate --migrationPath=service/migrations for download service
  • php yii migrate --migrationPath=@yii/i18n/migrations/ for i18n
  • php yii migrate for application 4.need mongoDb extension for php 5.after composer install rename vendor bower-asset folder set bower

+## PLG Admin panel setup ## for admin panel

  • npm install
  • run gulp

+## PLG service setup ## +

    1. Upload project to server.
    1. Initialize application yii init.
    1. Check database configuration in common/config/main-local.php.
    1. Check service parameters in service/config/parms.php. Check if all parameters belove are set serviceUid, serviceName, encryptKey, useragentXml, proxiesXml. Also make sure files useragentXml and proxiesXml exist and are readable.
    1. Check service configuration in service/config/main.php, service/config/main-local.php.
    1. Apply all migrations yii migrate --migrationPath=service/migrations.
    1. Make sure field uid in instances table has same value as serviceUid parameter (see service/config/paarms.php).
    1. Set value app_api_url in instances table.
    1. Add service to services table in web app DB.
  • Requierments

    • PHP 5.6.x or newer
    • V8Js PHP extension (used in some content providers)
    • MongoDb PHP extension (used in mongodb storage)
    • SSH2 PHP extension (used in sftp storage)
    • MySQL 5.6.33 or newer

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages