Skip to content

Deploy Fixthis

  1. get the pem or choose existing gaurav.pem
  2. ssh into server

ssh -i ~/gaurav.pem root@ipad

  1. install docker use docs

  2. pull the fixthis-backend docker image

    docker pull gauravghodinde/fixthis-backend

  3. run it

    docker run -d —name fixthis-server -p 3000:3000 gauravghodinde/fixthis-backend

  4. copy the serviceAccountKey.jsonand .env

      `scp -i gaurav.pem serviceAccountKey.json ubuntu@ipaddrr:~`
    

    scp -i gaurav.pem .env ubuntu@ipaddrr:~

  5. copy these files into docker container

    sudo docker cp ./.env fixthis-server:/usr/src/app/.env

    sudo docker cp ./serviceAccountKey.json fixthis-server:/usr/src/app/serviceAccountKey.json

  6. restart the docker container

    sudo docker restart fixthis-server

  7. check logs

    sudo docker logs fixthis-server