Last active
November 4, 2016 18:17
Revisions
-
Prosenjit Manna revised this gist
Nov 4, 2016 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -68,6 +68,9 @@ Select appropriate options from generator prompt * Create sub module for uploads dir * Understanding .gitignore Create a git reposotiry. Run `git init` in project root. Create a git repository in wp-content/uploads/ . `cd wp-content/uploads/` then run `git init`. Back to root directory `cd ../../`. Add submoule git submodule `git submodule add git@mygithost:projectname-uploads wp-content/uploads`. ## Deploy ### Upload in bitbucket * git remote add [REPO URL] @@ -81,7 +84,7 @@ Select appropriate options from generator prompt * git push deploy master #### Method 2: * clone git repo in dev server * git remote add origin [bitbucket server] * git pull origin master -
Prosenjit Manna revised this gist
Nov 4, 2016 . 1 changed file with 7 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,5 @@ ## Wordpress theme development workflow ### System requirement * [git](https://git-scm.com/) @@ -17,6 +12,13 @@ * MySQL * [generator-wp-automate](https://www.npmjs.com/package/generator-wp-automate) ### Dependency Instalation * [ubuntu 16.10](https://gist.github.com/developer-prosenjit/782612f6e0c8e10b748d1a967fe51642) * [ubuntu 15.10](https://gist.github.com/developer-prosenjit/961380bfe0589d8d8906f04be05d9bf0) ### Check system requirement `git --version && node -v && bower -v && gulp -v && wp --version && php -v && which mysql && uname -a` -
Prosenjit Manna revised this gist
Nov 4, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ ## Wordpress theme development workflow ### Lamp stack setup * [ubuntu 16.10](https://gist.github.com/developer-prosenjit/782612f6e0c8e10b748d1a967fe51642) * [ubuntu 15.10](https://gist.github.com/developer-prosenjit/961380bfe0589d8d8906f04be05d9bf0) -
Prosenjit Manna revised this gist
Nov 4, 2016 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,8 @@ ## Wordpress theme development workflow ### Instalation dependency for wordpress development * [ubuntu 16.10](https://gist.github.com/developer-prosenjit/782612f6e0c8e10b748d1a967fe51642) * [ubuntu 15.10](https://gist.github.com/developer-prosenjit/961380bfe0589d8d8906f04be05d9bf0) ### System requirement @@ -15,12 +15,12 @@ * [wp cli](http://wp-cli.org/) * PHP * MySQL * [generator-wp-automate](https://www.npmjs.com/package/generator-wp-automate) ### Check system requirement `git --version && node -v && bower -v && gulp -v && wp --version && php -v && which mysql && uname -a` ### Adding vertual host Add below code in .conf file located in /etc/apache2/sites-available/ -
Prosenjit Manna revised this gist
Oct 15, 2016 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -89,7 +89,8 @@ Select appropriate options from generator prompt ## Video Tutorial * [For Ubuntu user](https://www.youtube.com/playlist?list=PL3gSMjdAtx312SP9JcZs19qV-CmMMjCw0) -
Prosenjit Manna revised this gist
Oct 15, 2016 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,10 @@ ## Wordpress theme development workflow ### Instalation dependency for wordpress development * [ubuntu 16.10](https://gist.github.com/developer-prosenjit/e761622aa38b132de12dc409f0bee212) ### System requirement * [git](https://git-scm.com/) -
Prosenjit Manna revised this gist
Oct 14, 2016 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -31,6 +31,11 @@ Add below code in .conf file located in /etc/apache2/sites-available/ Then restart apache2 `sudo /etc/init.d/apache2 restart` Then edit host file located at `/etc/hosts` add below code `127.0.0.1 www.example.com` -
Prosenjit Manna revised this gist
Oct 14, 2016 . 1 changed file with 5 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -19,11 +19,14 @@ Add below code in .conf file located in /etc/apache2/sites-available/ ``` <VirtualHost *:80> ServerName www.example.com ServerAdmin webmaster@localhost DocumentRoot /home/dev/dev/wpautomate </VirtualHost> ``` Then restart apache2 `sudo /etc/init.d/apache2 restart` -
Prosenjit Manna revised this gist
Oct 14, 2016 . 1 changed file with 15 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,6 +15,21 @@ ### Check system requirement `git --version && node -v && bower -v && gulp -v && wp --version && php -v && which mysql && uname -a` ### Adding vertual host Add below code in .conf file located in /etc/apache2/sites-available/ ```<VirtualHost *:80> ServerName www.example.com ServerAdmin webmaster@localhost DocumentRoot /home/dev/dev/wpautomate </VirtualHost>``` Then restart apache2 `sudo /etc/init.d/apache2 restart` ### Creating new project Create the new directory in your apache document root or your choices. -
Prosenjit Manna revised this gist
Oct 14, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,7 +13,7 @@ * generator-wp-automate ### Check system requirement `git --version && node -v && bower -v && gulp -v && wp --version && php -v && which mysql && uname -a` ### Creating new project -
Prosenjit Manna created this gist
Oct 14, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,69 @@ ## Wordpress theme development workflow ### System requirement * [git](https://git-scm.com/) * [node ](https://nodejs.org/en/) * [bower](https://www.npmjs.com/package/bower) * [gulp ](https://www.npmjs.com/package/gulp) * Yo * [wp cli](http://wp-cli.org/) * PHP * MySQL * generator-wp-automate ### Check system requirement `git --version && node -v && bower -v && gulp -v && wp -version && php -v && which mysql && uname -a` ### Creating new project Create the new directory in your apache document root or your choices. `cd {your directory}` Enter your project directory `yo wp-automate` to generate WordPress project structure Select appropriate options from generator prompt ### Understanding automation * Download latest wordpress from wordpress.org * Install npm for automation * Install bower dependency for front end * Install wpautomate themes from github/bitbucket * Rename theme with your project dir name * Create database * Install wordpress * Remove unused theme and plugins * Install unit testing data ### Workflow with git * Create git repo in wordpress project root * Create sub module for uploads dir * Understanding .gitignore ## Deploy ### Upload in bitbucket * git remote add [REPO URL] * git push origin master ### Upload in dev server #### Method 1: * Create git repo in dev server * git remote add deploy [dev server] * git push deploy master #### Method 2: * Create git repo in dev server * git remote add origin [bitbucket server] * git pull origin master ### Shell script * Modifying setup script * Modifying package script