Skip to content

Instantly share code, notes, and snippets.

@dev-ext
Last active November 4, 2016 18:17

Revisions

  1. Prosenjit Manna revised this gist Nov 4, 2016. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion doc.md
    Original 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:
    * Create git repo in dev server
    * clone git repo in dev server
    * git remote add origin [bitbucket server]
    * git pull origin master

  2. Prosenjit Manna revised this gist Nov 4, 2016. 1 changed file with 7 additions and 5 deletions.
    12 changes: 7 additions & 5 deletions doc.md
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,5 @@
    ## 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)


    ### 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`

  3. Prosenjit Manna revised this gist Nov 4, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion doc.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    ## Wordpress theme development workflow

    ### Instalation dependency for wordpress development
    ### Lamp stack setup
    * [ubuntu 16.10](https://gist.github.com/developer-prosenjit/782612f6e0c8e10b748d1a967fe51642)
    * [ubuntu 15.10](https://gist.github.com/developer-prosenjit/961380bfe0589d8d8906f04be05d9bf0)

  4. Prosenjit Manna revised this gist Nov 4, 2016. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions doc.md
    Original 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/e761622aa38b132de12dc409f0bee212)

    * [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
    * [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
    ### Adding vertual host

    Add below code in .conf file located in /etc/apache2/sites-available/

  5. Prosenjit Manna revised this gist Oct 15, 2016. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion doc.md
    Original 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)



  6. Prosenjit Manna revised this gist Oct 15, 2016. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions doc.md
    Original 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/)
  7. Prosenjit Manna revised this gist Oct 14, 2016. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions doc.md
    Original 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`





  8. Prosenjit Manna revised this gist Oct 14, 2016. 1 changed file with 5 additions and 2 deletions.
    7 changes: 5 additions & 2 deletions doc.md
    Original 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>
    ```
    <VirtualHost *:80>
    ServerName www.example.com
    ServerAdmin webmaster@localhost
    DocumentRoot /home/dev/dev/wpautomate
    </VirtualHost>```
    </VirtualHost>
    ```

    Then restart apache2
    `sudo /etc/init.d/apache2 restart`
  9. Prosenjit Manna revised this gist Oct 14, 2016. 1 changed file with 15 additions and 0 deletions.
    15 changes: 15 additions & 0 deletions doc.md
    Original 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.
  10. Prosenjit Manna revised this gist Oct 14, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion doc.md
    Original 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`
    `git --version && node -v && bower -v && gulp -v && wp --version && php -v && which mysql && uname -a`


    ### Creating new project
  11. Prosenjit Manna created this gist Oct 14, 2016.
    69 changes: 69 additions & 0 deletions doc.md
    Original 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