Difference between #4 and #8 of
Starting your Yii Project Reference Guide (with Git VCS in Linux)

Revision #8 has been created by marcanuy on Mar 15, 2012, 9:39:23 PM with the memo:

fixed extensions path
« previous (#4) next (#9) »


Title unchanged

Starting your Yii Project Reference Guide (with Git VCS in Linux)

Category unchanged


Yii version unchanged

Tags unchanged

git, github, reference, guide, yii

Content changed

git pull && git submodule update --recursive

To remove a submodule:
git rm --cached protected/extensions/lightopenid

Edit .gitignore file in root folder and add dirs/files you don't want to be in git repo
Use ! to negate the pattern:

NowIf you are ready to go!
#Keep in mind some database design best practices
[http://www.yiiframework.com/wiki/227/guidelines-for-good-schema-design](http://www.yiiframework.com/wiki/227/guidelines-for-good-schema-design "Guidelines for good schema design")
#Use migration for tracking database changes
[http://www.yiiframework.com/doc/guide/1.1/en/database.migration](http://www.yiiframework.com/doc/guide/1.1/en/database.migration "")
$yii/framework/yiic migrate create myNewTable
Update database with new migrations after updating your repo
$yii/framework/yiic migrate
#Don't forget to secure your app
[http://www.yiiframework.com/wiki/275/how-to-write-secure-yii-applications/](http://www.yiiframework.com/wiki/275/how-to-write-secure-yii-applications/ "Secure your app")
want to add your forked repo from github ( i.e.: git@github.com:marcanuy/Comments-module.git ) from another repo (i.e.: git://github.com/segoddnja/Comments-module.git)  to the extensions directory, then:
git submodule add git@github.com:marcanuy/Comments-module.git protected/Comments-module
cd protected/extensions/Comments-module
git remote add upstream git://github.com/segoddnja/Comments-module.git
Then every time you wish to get latest updates from the original repo you should do:
cd protected/extensions/Comments-module
git pull upstream master
Now you are ready to go!
16 0
Viewed: 32 667 times
Version: 1.1
Category: Tutorials
Written by: marcanuy
Last updated by: marcanuy
Created on: Feb 20, 2012
Last updated: 6 years ago
Update Article


View all history