Enables deployment of shock server and clients within the kbase release environment.
The following are instructions on how to deploy the Shock service in KBase from launching a fresh KBase instance to starting the service...
- Create security group for Shock server (this isn't required with the test ports in the Makefile but makes it convenient if you want to change the ports later)
- Using this security group and your key, launch a KBase instance
Create a mongo data directory on the mounted drive and symbolic link to point to it:
ln -s /mnt/db .
Start mongod (preferably in a screen session):
(NOTE: mongod needs a few minutes to start. Once you can run "mongo" from the command line and connect to mongo db, then proceed with deploying Shock)
(NOTE: If you're not deploying Shock on the production server, run the start_service command with the '-e test' option)
After deployment has completed, if you've associated an IP with your instance you should be able to confirm that Shock is running by going to either url below (ports are defined in shock.cfg):
site -> http://[Shock Server IP]:7077/
api -> http://[Shock Server IP]:7078/