mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
vagrant: Clarify some details how to use for development
This commit is contained in:
parent
8bcea9a8fe
commit
2c2e5fb86e
21
HACKING
21
HACKING
@ -3,23 +3,26 @@
|
|||||||
## Setting Up Development Environment Using Vagrant
|
## Setting Up Development Environment Using Vagrant
|
||||||
|
|
||||||
Vagrant is a free software command line utility for managing the life
|
Vagrant is a free software command line utility for managing the life
|
||||||
cycle of virtual machines. FreedomBox project provides ready made
|
cycle of virtual machines. The FreedomBox project provides ready-made
|
||||||
virtual machines for use with Vagrant. These images make setting up
|
virtual machines (VMs) for use with Vagrant. These images make setting up
|
||||||
of environment for Plinth development rather simple.
|
an environment for Plinth development rather simple: You can edit the Plinth
|
||||||
|
source code on your host and immediately see the effects in the running VM.
|
||||||
|
The entire setup is automatic and requires about 4.5 GB of disk space.
|
||||||
|
|
||||||
1. Install Vagrant and VirtualBox:
|
1. Install Vagrant and VirtualBox:
|
||||||
|
|
||||||
$ sudo apt install virtualbox vagrant
|
$ sudo apt-get install virtualbox vagrant
|
||||||
|
|
||||||
2. Download, setup, run and configure virtual machine for Plinth
|
2. To download, setup, run, and configure a VM for Plinth development
|
||||||
development using Vagrant:
|
using Vagrant, simply execute in your Plinth development folder:
|
||||||
|
|
||||||
$ vagrant up
|
$ vagrant up
|
||||||
|
|
||||||
3. To access Plinth, visit https://localhost:4430/plinth/
|
3. To access Plinth (from host), visit https://localhost:4430/plinth/
|
||||||
|
|
||||||
4. Make changes to the source code on your host machine as usual.
|
4. Edit the source code in your host machine's Plinth development folder.
|
||||||
Then to make the changes reflect on the virtual machine, run:
|
By default, this folder is shared within the VM, at /vagrant/.
|
||||||
|
To actually reflect the changes in the running VM, run on your host:
|
||||||
|
|
||||||
$ vagrant provision
|
$ vagrant provision
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user