paths: a dir should contain 3 subdirs/projects
- website
- wp-env
- wp-www (wordpress document/root dir)
wp-www dir has extole theme wp-www/wp-content/themes/extole as symlink to /vagrant/theme.
It's broken on host machine, but will be "right" on vagrant vbox machine, since the path to theme
will be mounted as /vagrant/theme resource.
config.vm.synced_folder "../wp-www", "/var/www"
config.vm.synced_folder "../website", "/vagrant/theme"
- Clone the project.
- Run the command
vagrant upfrom the directory
- Dump your db (phpmyadmin or other handy tool) into wp-env/files/import/daily-backup.sql;
- run
vagrant ssh(will log you into vbox); cd /vagrant/files- before importing "production" dump, you can substitute "production"
host with (your) "dev" host e.g
zzztest.extole.com
$ ./bin/update_dump.sh import/daily-backup.sql zzztest.extole.com
1st param is the dump you want to import
2nd param is the dev host
this will create daily-backup.sql-yyyy-mm-dd file with references to "dev" host
as output you will see
```
vagrant@lucid64:/vagrant$ ./files/bin/update_dump.sh files/import/daily-backup.sql
substituting extole host name with zzztest.extole.com
Done.
```
- import the newly created file
$ ./bin/import_daily_bk.sh import/daily-backup.sql-yyyy-mm-dd
- switch to "website" dir
$cd /vagrant/theme
$npm install; bower install
- for development (e.g. scss chanbges')
$grunt serve
Once you've started a live reload server you'll be able to access the live reload script.
To enable live reload on your page, add a script tag before your closing </body> tag pointing to the livereload.js script:
<script src="//localhost:35729/livereload.js"></script>