Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions seeLiveChanges.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/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