Script
Provided in the rocreadar_server repository is a script that will fully setup an Ubuntu 14.04 fresh installation with both the server and portal. It provides upstart services so starting and stopping is easy.
The script requires you to enter both a github.com username and password (to clone opencv) and a cias-stash username and password to clone the repositories for rocreadar. After entering these, the script will fully deploy the machine it is running on.
The script needs to be made executable, and run with superuser privileges. It assumes that no packages it needs are installed and no repositories have been cloned.
chmod +x deploy sudo ./deploy
Upstart
sudo start rocreadarportal sudo stop rocreadarportal sudo start rocreadarserver sudo stop rocreadarserver
When updating code through git, you will need to stop the running service, pull the up to date code, and start the service again.
Manual Deployment Flow
- Install dependencies
- git
- nodejs
- opencv
- build-essential (for compilers)
- Clone repositories
- rocreadar_portal
- rocreadar_server
- Install local node packages
- npm install (executed from rocreadar_portal and rocreadar_server/core)
- bower install (executed from rocreadar_portal )
- Generate the angular service file
Create upstart services pointing to respective services
`grunt serve` for portal
`node .` for server
- Start services
- sudo start rocreadarportal
- sudo start rocreadarserver