-
Notifications
You must be signed in to change notification settings - Fork 0
Configuring Vagrant Server
Noah Freedman edited this page Feb 6, 2014
·
2 revisions
We are using Vagrant for development environments. The development environment for Smile will live in a Vagrant virtual machine, while development and testing of web content can be done on the host machine.
vagrant git
git clone
[https://github.com/SMILEConsortium/smile_vm](https://github.com/SMILEConsortium/smile_vm)
cd smile_vm
git pull origin master
All development should take place on the development branches. For adding a moodle server, for instance, create a moodle branch.
# Master will be reserved for releases for Smile Plug software.
git checkout [project branch]
Download Vagrant
#!bash
vagrant box add ArchLinux http://vagrant.srijn.net/archlinux-x64-2013-08-17.box
cd [smile_vm directory]
vagrant init ArchLinux
vagrant up
#to ssh into Vagrant box
vagrant ssh
#to return to host machine
exit
smile_vm/vagrant is accessible at /vagrant from within the vagrant virtual machine.
You can use systemctl to control the servers installed on the vagrant virtual machine. systemctl uses the following syntax: sudo systemctl [start/stop] [service name]
There are three servers:
- CouchDB, with service name 'couchdb'
systemctl start couchdb
- An NGINX reverse-proxy server, with service name 'nginx'
systemctl start nginx
The virtual machine (VM)'s port :80 is mapped to the host's port :8080.
CouchDB is available at port :5984 on the VM and at :80/couchdb on the host