Just a simple vagrant setup for development purpose so that it's easier to get instant feedback
The frappe and erpnext codes will be checked out under /mounted-space/
install the vagrant volume plugin
On your terminal: vagrant plugin install vagrant-disksize
- Open your terminal
- vagrant up
- Make sure that you have completed your changes in the app directory if you made any
- Open your terminal
- ./destroy.sh (in WINDOWS just delete the app folder and vagrant destroy) This will destroy the virtual machine Then move the app folder into one with timestamp postfix. This way if you forgot to push any changes, it's not all gone.
- After provisioning, do vagrant ssh, then run /mounted-space/
- Run sync_to_host.sh to sync the main apps for the first time (make sure everything is okay)
- Install the apps that you want to work with
- Run sync_to_host.sh to sync those apps again
- Do you code changes in the /mounted-space/ in your host machine
- Run sync_to_vm.sh to sync your changes to the VM so that you can see your changes in the website
Well, it works well for vanilla installation under Windows and it does work when you create new apps. However if we do a frappe get-app, there are some os.rename operation that needs to be done. This does not work under Windows, even with the full administrative permissions. Probably since it's a shared VM drive.