Deploy Fixthis
- get the pem or choose existing gaurav.pem
- ssh into server
ssh -i ~/gaurav.pem root@ipad
install docker use docs
pull the fixthis-backend docker image
docker pull gauravghodinde/fixthis-backendrun it
docker run -d —name fixthis-server -p 3000:3000 gauravghodinde/fixthis-backendcopy the
serviceAccountKey.jsonand.env`scp -i gaurav.pem serviceAccountKey.json ubuntu@ipaddrr:~`scp -i gaurav.pem .env ubuntu@ipaddrr:~copy these files into docker container
sudo docker cp ./.env fixthis-server:/usr/src/app/.envsudo docker cp ./serviceAccountKey.json fixthis-server:/usr/src/app/serviceAccountKey.jsonrestart the docker container
sudo docker restart fixthis-servercheck logs
sudo docker logs fixthis-server