Merge pull request #101 from hummingbot/update-setup-script

update setup.sh
This commit is contained in:
Ralph Comia
2025-07-29 20:44:00 +08:00
committed by GitHub
2 changed files with 21 additions and 1 deletions

View File

@@ -126,7 +126,7 @@ config = {
yaml_config = yaml.dump(config, default_flow_style=False)
with c3:
upload_config_to_backend = st.button("Upload Config to BackendAPI")
upload_config_to_backend = st.button("Upload Config to Hummingbot-API")
if upload_config_to_backend:
backend_api_client = get_backend_api_client()

View File

@@ -111,6 +111,26 @@ EOF
echo -e "${GREEN}✅ .env file created successfully!${NC}"
echo ""
# Update docker-compose.yml with new credentials
echo -e "${GREEN}🔧 Updating docker-compose.yml with new credentials...${NC}"
# Update BACKEND_API_USERNAME and BACKEND_API_PASSWORD in docker-compose.yml
if [ -f "docker-compose.yml" ]; then
# Create a backup of the original file
cp docker-compose.yml docker-compose.yml.backup
# Update the credentials using sed
sed -i "s/BACKEND_API_USERNAME=.*/BACKEND_API_USERNAME=$USERNAME/" docker-compose.yml
sed -i "s/BACKEND_API_PASSWORD=.*/BACKEND_API_PASSWORD=$PASSWORD/" docker-compose.yml
echo -e "${GREEN}✅ docker-compose.yml updated successfully!${NC}"
echo -e "${BLUE}📋 Updated credentials:${NC} Username: $USERNAME, Password: $PASSWORD"
else
echo -e "${YELLOW}⚠️ Warning: docker-compose.yml not found in current directory${NC}"
fi
echo ""
# Display configuration summary
echo -e "${BLUE}📋 Configuration Summary${NC}"
echo "======================="