-
Notifications
You must be signed in to change notification settings - Fork 26
Saral Backend Server Setup
Dileep Gadiraju edited this page Nov 9, 2021
·
5 revisions
ssh [email protected]
sudo su
docker ps
docker exec -it <container ID> bash
docker service update saralpoc_gateway --force
ssh user@localhost -N -f -L 27017:saral-xxx-api.anuvaad.org:27017
- Commands to upload files:
scp <files> [email protected]:/home/ubuntu
- Commands to download files:
scp [email protected]:/home/ubuntu <files>
docker exec -it $(docker ps -aqf "name=^saralpoc_saral-backend") node ./data/import-data.js --delete
docker exec -it $(docker ps -aqf "name=^saralpoc_saral-backend") node ./data/import-data.js --import
- Trigger below build to publish latest image to docker hub. Change Image or tag name as needed.
https://jenkins.idc.tarento.com/job/Saral/job/saral-backend/
- Feed Image name with tag (say saral-backend:1.0-latest) for below dev server deployment.
Note: This job has the option to reload saral reference data into the backend database.
https://jenkins.idc.tarento.com/job/Saral/job/deploy-to-poc/
curl -d '{"schoolId": "up001","password": "changeit","classes": true}' -H 'Content-Type: application/json' http://saral-xxx-api.anuvaad.org:3005/schools/login
curl -d '{"schoolId": "1","password": "changeit","classes": true}' -H 'Content-Type: application/json' https://saral-xxx-api.anuvaad.org:3005/schools/login