Skip to content

Commit 6aa6f19

Browse files
committed
Remove .env file copy step from deploy script
1 parent 5a75bcf commit 6aa6f19

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

bin/deploy-with-migrations.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,6 @@ ssh $SSH_OPTS $REMOTE_USER@$REMOTE_HOST "cd $REMOTE_DIR && chmod +x ./bin/instal
3939
# Run Supabase setup and migrations on the remote server
4040
echo -e "${YELLOW}Running Supabase setup and migrations on remote server...${NC}"
4141

42-
# First, ensure the .env file is properly set up on the remote server
43-
if [ -f .env ]; then
44-
echo -e "${YELLOW}Copying .env file to remote server...${NC}"
45-
scp $SSH_OPTS .env $REMOTE_USER@$REMOTE_HOST:$REMOTE_DIR/.env
46-
47-
if [ $? -ne 0 ]; then
48-
echo -e "${RED}Failed to copy .env file to remote server. Aborting.${NC}"
49-
exit 1
50-
fi
51-
fi
52-
5342
# Run the Supabase setup
5443
echo -e "${YELLOW}Running Supabase setup on remote server...${NC}"
5544
ssh $SSH_OPTS $REMOTE_USER@$REMOTE_HOST "cd $REMOTE_DIR && chmod +x ./bin/supabase-db.sh && ./bin/supabase-db.sh setup"

0 commit comments

Comments
 (0)