Name: devenv-casework
Owner: HM Land Registry
Description: Test development environment for LR casework team
Created: 2015-05-08 00:50:16.0
Updated: 2015-06-11 16:26:52.0
Pushed: 2015-10-29 11:24:52.0
Homepage: null
Size: 340
Language: Shell
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Early development environment for the Digital by Default Casework project.
This development environment is designed to be easy to use, and function very similarly to a server environment.
Requirements:
Inside the project folder, simply run vagrant up
and then connect to your projects on the ports defined in configuration.yaml
All the apps are run by supervisord, here are some helpful aliases for supervisorctl.
us - view running status of all apps (via supervisorctl)
{name of app} - stop app running in supervisord
t {name of app} - start app running in supervisord
art {name of app} - restart app running in supervisord
ad - reload supervisord config and restart all apps
tsup - start supervisord (needed after a vagrant halt/vagrant up)
To run the app in the terminal (i.e. not via supervisord, so you can directly see the output)
un {name of app}
To quickly view the logs of an app
og {name of app}
localhost:5001
/cases
/cases/<caseid>
localhost:5002
/cases
/cases/<casenumber>
localhost:5003
/mdref/<md_ref>
localhost:5004
/titles
- Add whole working register./titles/<title_number>
- Get whole working register./titles/<title_number>/groups/<group_position>/entries/<entry_position>
- Amend an individual entry./titles/<title_number>/groups/<group_position>/entries/
- Insert an entry./titles/<title_number>/groups/<group_position>/entries/<entry_position>
- Delete an entry./entrystructure/
- Get entry structure./titles/<title_number>/groups
- Insert a group./titles/<title_number>/groups/<group_position>
- Delete a group./titles/<title_number>/groups/<group_position>
- Amend a group.localhost:5005
/validate/<title_number>
localhost:5006
/process/
localhost:8888/DaylistAdapter
/cases/<title_number>
localhost:8888/TitlesAdapter
/titles/<title_number>
The development environment relies on Vagrant. Currently only Virtualbox is supported as a provider.
For further information on managing Vagrant you can read the official documentation.
TIP: You can improve the start-up time of the development environment by installing the cachier Vagrant plugin.
You can install it by running:
grant plugin install vagrant-cachier
Login to the centos virtual machine. Switch to root with:
-i
login to the system of record database with this:
-U workingregister workingregister