git --version && node -v && bower -v && gulp -v && wp --version && php -v && which mysql && uname -a
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
Then edit host file located at /etc/hosts
add below code
127.0.0.1 www.example.com
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
- 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
- Create git repo in wordpress project root
- 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
.
- git remote add [REPO URL]
- git push origin master
- Create git repo in dev server
- git remote add deploy [dev server]
- git push deploy master
- clone git repo in dev server
- git remote add origin [bitbucket server]
- git pull origin master
- Modifying setup script
- Modifying package script