Start CIVILITY application in tethys
Log in to tethys
ssh username@tethys.med.unc.edu
Log in as jprieto using su
Run screen
The application is running in the background using the screen command.
Make sure there are no other screens running using screen -ls
This will show a list with the running screens:
There is a screen on: 6681.pts-0.tethys (Detached)
To attach to a running screen run screen -r 6681. Otherwise, start screen.
For more information about screen command check the screen documentation
Run the node server =
Go the source folder located at /home/jprieto/source/ProbtrackBrainConnectivity and start the server:
NODE_ENV=production node index.js
The configuration of the server is in the file conf.my.production.json, here you can find various parameters for the server configuration like host, port, ssl certificate, email configuration, etc.
Create a reverse tunnel to killdevil =
ssh killdevil -R 8180:152.19.9.68:8180 -T -N -f -o ServerAliveInterval=60
The reverse tunnel allows the application in killdevil to send request to the server, download data and launch jobs in the cluster.
For more information about the cluster side application check the documentation at https://github.com/juanprietob/clusterpost