a Vagrant configuration designed for development of WordPress plugins, themes, or websites.
Install all of the followings:
# Clone repository
$ git clone git@github.com:code2gether/vagrant-wordpress-dev-environment.git
# or if you want to rename the theme directory name
$ git@github.com:code2gether/aylin.git <theme-name>Change into your directory cd vagrant-wordpress-dev-environment directory run the following commands:
1. vagrant up # start a Vagrant environment.
2. composer install # install packages for wordpressIf you notice after running vagrant up, a new folder wp-content created in your root project, this is because it symlinked wp-content to wp/wp-content please don't mess with wp directory. So now you can add your own theme to themes inside wp-content directory.
To get our starter wordpress theme
- change your directory into
cd wp-content/themes/in your root files. - Clone our starter theme
git clone https://github.com/code2gether/aylin
you can find more informtion on our theme readme file.
- vagrant up
- cd wp-content/themes/aylin
- yarn start | npm run start
If you want to stop vagrant you need to run vagrant halt in command line.