-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-railway.sh
More file actions
executable file
·41 lines (31 loc) · 969 Bytes
/
deploy-railway.sh
File metadata and controls
executable file
·41 lines (31 loc) · 969 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
# Railway Deployment Script
# This script deploys the deepsearch platform to Railway
set -e
echo "🚀 Starting Railway deployment..."
# Check if Railway CLI is installed
if ! command -v railway &> /dev/null; then
echo "❌ Railway CLI is not installed. Installing..."
npm install -g @railway/cli
fi
# Login to Railway (if needed)
echo "🔐 Checking Railway authentication..."
if ! railway whoami &> /dev/null; then
echo "Please login to Railway:"
railway login
fi
# Change to deepsearch directory
cd deepsearch
# Initialize Railway project if not already done
if [ ! -f ".railway/config.json" ]; then
echo "📦 Initializing Railway project..."
railway init
fi
# Link the project to Railway
echo "🔗 Linking to Railway project..."
railway link
# Deploy to Railway
echo "🚢Deploying to Railway..."
railway up
echo "✅ Deployment completed successfully!"
echo "📊 Check your Railway dashboard for deployment status"