Commit f224ba75 authored by Aakash Verma's avatar Aakash Verma
Browse files

bash Script added for setup of local deployment

No related merge requests found
Showing with 30 additions and 0 deletions
+30 -0
#!/bin/bash
image_name="wrapper"
container_id=$(docker ps -qf "ancestor=$image_name")
echo "container Id = $container_id"
docker stop "$container_id" && docker rm "$container_id"
echo "container stopped and removed"
cp .env apps/wrapper/
echo "Environment variables copied"
cd apps/wrapper
npm i --legacy-peer-deps
echo "Dependecies Installed running the server"
# Dependecies Installed running the server
npm run start
# Open localhost:3000 in web browser
if [[ "$OSTYPE" == "darwin"* ]]; then
open "http://localhost:3000"
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
xdg-open "http://localhost:3000"
else
echo "Unsupported operating system."
fi
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment