-
Notifications
You must be signed in to change notification settings - Fork 749
MifosX Vagrant Box Setup
You have the option of setting up all MifosX codebase on your local machine, or use a pre-created Vagrant VM Box which has all softwares pre-installed inside it (like npm, bower, java, mysql, etc).
If you want to try the vagrant box, here are the steps:
UPDATE: Currently there is a fresh Vagrant box with instructions at: https://mifosforge.jira.com/wiki/display/MDZ/Quick+Developer+Box+VM+Setup
-
Install Virtual Box.
-
Install Vagrant. (might need ruby).
-
Download MifosX Vagrant Box.
-
Create a folder called
mifos
where all the code will reside. -
In
mifos
pull the code by executing the (requires git) commands:git clone https://github.com/openMF/mifosx.git
-
In
mifos
create a folder calledmifos-vagrant
. -
Now you should have 3 folders in
Mifos
:community-app
mifosx
mifos-vagrant
-
Go into mifos-vagrant, and type the command:
vagrant box add mifosx-centos Mifos_Vagrant_Centos.box
-
Now, the box should be added, and you should be able to see it with the command:
vagrant box list
-
Download the VagrantFile into the
mifos-vagrant
folder. -
Run the command:
vagrant up
-
This should start your vagrant box. If it prints an error (or does not map shared folder) then try deleting the
/etc/udev/rules.d/70-persistent-net.rules
file from inside vagrant (by doing a ‘vagrant ssh’ command to go in). -
Once vagrant is up, you should be able to
vagrant ssh
into the box, and go to/Project
folder where you will see all your code. You can compile and run the server now from inside the vagrant VM. -
Shut down the firewall by executing the command (one time):
sudo service iptables stop
-
You can open your Firefox browser on the host machine, and open the file:
community-app/app/index.html
to browse the app. If it doesn’t work, then go into your vagrant box, and into community-app folder, and run:bower install
andnpm install
and then try again. -
To halt your vagrant, run
vagrant halt
. -
If you mess up your vagrant box, you can always fire
vagrant destroy
and start afresh withvagrant up
.