-
Notifications
You must be signed in to change notification settings - Fork 26
Saral Backend Server Setup
ssh [email protected]
sudo su
docker ps
docker exec -it <container ID> bash
docker service update saralpoc_gateway --force
ssh -i <key> [email protected] -L 27017:server1.example.com:27017
ssh user@localhost -N -f -L 27017:saral-dev-api.anuvaad.org:27017
- Commands to upload files:
scp <files> [email protected]:/home/ubuntu
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/
http://saral-xxx-api.anuvaad.org:3005
https://saral-xxx-api.anuvaad.org
curl -d '{"schoolId": "1","password": "tarento@123","classes": true}' -H 'Content-Type: application/json' http://saral-dev-api.anuvaad.org:3005/schools/login
curl -d '{"schoolId": "1","password": "tarento@123","classes": true}' -H 'Content-Type: application/json' https://saral-dev-api.anuvaad.org:3005/schools/login