Wpautomate
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
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
.