...
- Log in sftp as you
- Upload files to home dir
- Log in ssh as you
- move files to /tmp
- sudo su
- su -s /bin/bash mapping-service
- cd /opt/mapping-data/ICD11
- cp /tmp/*txt .
Making a Release
- Log into prod-mapping-icd11.ihtsdotools.org
Become the root user:
Code Block # this will require having sudo access, then enter your password % sudo
Become the "mapping-service" user
Code Block su -s /bin/bash mapping-service
Go to the admin directory for running a release
Code Block cd /opt/mapping-data/code/admin/release
Make a release
Code Block mvn install -PRelease -D$rc -Drefset.id=icd11RefsetId -Doutput.dir=. -Dtime=20171107 -Dmodule.id=900000000000207008 -Dtest.mode.flag=true # the output will be a file like the following der2_iisssccRefset_ExtendedMapActiveSnapshot_INT_20171107.txt
Important details
- Log in as your user (requires key to be configured)
- User should have "sudo" rights
- The server runs as the "mapping-service" user.
For a shell as this user
Code Block language text sudo su su -s /bin/bash mapping-service
- App details
- star/stop server "supervisorctl start/stop mapping-service"
- look at /etc/supervisor/conf.d/mapping-service.conf for details
- /opt/mapping-service/lib/mapping-rest.war
- Admin tools in: /opt/mapping-service-admin/admin (run as mapping-service user)
- /opt/mapping-service-admin/admin/lucene/mvn install -PReindex -Drun.config=/opt/mapping-service/conf/config.properties
- Data: in /opt/mapping-data
- conf - configuration files
- indexes - lucene indexes
- Logs - /var/log/supervisor
- STDOUT log: /var/log/tomcat.log
- mapping-service-stderr---supervisor-79oJH0.log
- mapping-service-stdout---supervisor-6Jv0gZ.log
- Instead of tomcat we use webapp-runner.jar which is a tomcat wrapped up. Allows us to package a known tomcat/webapp package.
- It is installed to /opt/mapping-service with data in /opt/mapping-data and admin in /opt/mapping-admin
- a Jenkins job exists allowing you to install wrt updating code or what ever - see below
- star/stop server "supervisorctl start/stop mapping-service"
- Jenkins Deploy - https://jenkins.ihtsdotools.org/view/Mapping/job/deploy-to-prod-mapping-icd11/
- This just fires off an ansible process
- Check /var/log/tomcat.log to see what it's doing (while you run jenkins job)
...