409e92d6ae
Build and Push Docker Images / Build Docker Image (push) Has been cancelled
Build and Push Docker Images / Build Railway Docker Image (push) Has been cancelled
Build and Publish n8n Docker Image / test-image (push) Has been cancelled
Dependency Compatibility Check / Fresh Install Dependency Check (push) Has been cancelled
Build and Publish n8n Docker Image / build-and-push (push) Has been cancelled
Build and Publish n8n Docker Image / create-release (push) Has been cancelled
Automated Release / Detect Version Change (push) Has been cancelled
Automated Release / Generate Release Notes (push) Has been cancelled
Automated Release / Create GitHub Release (push) Has been cancelled
Automated Release / Package MCPB Bundle (push) Has been cancelled
Automated Release / Build and Verify (push) Has been cancelled
Automated Release / Publish to NPM (push) Has been cancelled
Automated Release / Build and Push Docker Images (push) Has been cancelled
Automated Release / Update Documentation (push) Has been cancelled
Automated Release / Notify Release Completion (push) Has been cancelled
Secret Scan / secretlint (push) Has been cancelled
Test Suite / test (push) Has been cancelled
Test Suite / cjs-runtime (push) Has been cancelled
Test Suite / publish-results (push) Has been cancelled
41 lines
932 B
Bash
Executable File
41 lines
932 B
Bash
Executable File
#!/bin/bash
|
|
# Simple deployment script for n8n-MCP HTTP server
|
|
# For private, single-user deployments only
|
|
|
|
set -e
|
|
|
|
echo "n8n-MCP HTTP Deployment Script"
|
|
echo "=============================="
|
|
echo ""
|
|
|
|
# Check if .env exists
|
|
if [ ! -f .env ]; then
|
|
echo "Creating .env file..."
|
|
cp .env.example .env
|
|
echo ""
|
|
echo "⚠️ Please edit .env file and set:"
|
|
echo " - AUTH_TOKEN (generate with: openssl rand -base64 32)"
|
|
echo " - MCP_MODE=http"
|
|
echo " - PORT (default 3000)"
|
|
echo ""
|
|
exit 1
|
|
fi
|
|
|
|
# Check if AUTH_TOKEN is set
|
|
if ! grep -q "AUTH_TOKEN=.*[a-zA-Z0-9]" .env; then
|
|
echo "ERROR: AUTH_TOKEN not set in .env file"
|
|
echo "Generate one with: openssl rand -base64 32"
|
|
exit 1
|
|
fi
|
|
|
|
# Build and start
|
|
echo "Building project..."
|
|
npm run build
|
|
|
|
echo ""
|
|
echo "Starting HTTP server..."
|
|
echo "Use Ctrl+C to stop"
|
|
echo ""
|
|
|
|
# Start with production settings
|
|
NODE_ENV=production npm run start:http |