2017 © Pedro Peláez
 

project yii-skeleton

Basic Yii skeleton

image

bartaakos/yii-skeleton

Basic Yii skeleton

  • Sunday, January 3, 2016
  • by bartaakos
  • Repository
  • 1 Watchers
  • 1 Stars
  • 36 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

yii-skeleton

This is a basic skeleton for Yii applications enhanced with composer., (*1)

Installation

For project initialization you can run simply the command below:, (*2)

$ composer create-project bartaakos/yii-skeleton MyNewProject, (*3)

Keep in mind that you need to create the two configuration files (custom.php, params.php)., (*4)

Static files

/web/assets
/vendor
/runtime
/config/custom.php
/config/params.php

The files listed above are ignored and you should handle them as static content., (*5)

Maintenance

nDeploy

This is a very convenient tool for high-level site maintenance., (*6)

For installation please check nDeploy's readme. The final build.properties should look like something like this:, (*7)

;-- deploy basedir --
basedir=/home/my-new-project

;-- application --
application.name=my-new-project
application.framework=yii
;application.deploydir=/home/my-new-project/current
;application.repositorydir=/home/my-new-project/src/my-new-project
;application.releasesdir=/home/my-new-project/releases
application.releaseskept=10

;-- scm properties --
scm.type=git
scm.repository=repository-of-my-new-project.git
;scm.branch=master
;scm.git.extra.path.pull=


;-- shared files --
shared.files=config/custom.php,config/params.php,runtime,web/assets,vendor

;-- vendor --
vendor=composer
vendor.command=update

;-- yii framework properties --
application.framework.extra.migrate.command=./yiic
application.framework.extra.migrate=true
application.framework.extra.migrate.ask=false

;-- maintenance --
;maintenance=false
;maintenance.source=
;maintenance.destination=
;maintenance.remove=true

;-- hash --
;hash=true
;hash.file=

;-- lock --
;lock=true
;lock.file=

;-- ndpeloy build target's basedir --
ndeploy.basedir=/home/ndeploy/current

Note that I removed the yiic migration after composer update/install because we do that with nDeploy as you can see. If you need to get that back simply uncomment those lines in the params in console/console.php and set application.framework.extra.migrate to false in build.properties., (*8)

Credits

Netpositive, (*9)

The Versions