-
Notifications
You must be signed in to change notification settings - Fork 0
How To Deploy Bridge On Azure
-
cd into the directory your ssh key is stored and you should then be in the virtual machine:


-
Replace the api image name in the dockerfile to your accountName/containerName:[tag] like below

-
In your local terminal send the docker-compose.yaml to the virtual machine:
scp -i ~/[path to your ssh file] [path to your docker.yaml] azureuser@20.84.111.219:~ -
Go to src/backend and execute the commands to build and push your image:
docker build -t [your docker username]/api:latest .docker push nidhib03/api:latest -
In the virtual machine, navigate to the directory your docker-compose.yaml is stored and pull the image:
docker pull nidhib03/api:latest -
Now run the docker compose file:
docker-compose up -dOnce it composes like below, check the api logs:

Run
docker logs -f light_api_1if you are able to send requests like such then the backend is up: You can use this as the remote url:http://20.84.111.219:8000/You can go to your local terminal and check if it is up:
curl http://20.84.111.219:8000/health-check
-
From your local terminal, send the frontend folder to your virtual machine with the below command: 'scp -i [path to your ssh key] [path to your frontend directory] azureuser@20.84.111.219:~'
-
From your virtual machine, if the folder is zipped, unzip it:
tar -xzvf bridge-front.tar.gz -C bridge-front -
cd to to the frontend directory and run:
npm inpm run devOnce it successfully compiles, the frontend is up:

Congratulations you have now deployed Bridge