Pre-launch — Gluecron is in final validation. Public signups and git hosting for non-owner users open after launch review.
CodeIssuesDiscussionsWikiPull RequestsProjectsCommitsActionsReleasesContributorsPulse● GatesSecuritySettingsDeploymentsPipelineInsightsAgents✨ Explain✨ Ask AI✨ Workspace✨ Spec✨ Tests▓ Debt Map✨ NL Search🏛 Archaeology
Blame · Line-by-line history

crontech-deploy.sh

Each line is annotated with the commit that last touched it. Click any SHA to jump to that commit and see the surrounding change.

crontech-deploy.shBlame66 lines · 1 contributor
3644238Claude1#!/bin/bash
2set -euo pipefail
3
4# ============================================
5# Gluecron via Crontech Deployment
6#
7# This deploys gluecron through the Crontech ecosystem.
8# Crontech handles routing, SSL, and domain management.
9# gluecron hosts the code. GateTest scans it.
10# The ecosystem feeds itself.
11# ============================================
12
13APP_NAME="gluecron"
14
15echo "=========================================="
16echo " Deploying $APP_NAME via Crontech"
17echo "=========================================="
18
19# Check DATABASE_URL
20if [ -z "${DATABASE_URL:-}" ]; then
21 echo "ERROR: Set DATABASE_URL first."
22 echo " export DATABASE_URL='postgresql://...'"
23 exit 1
24fi
25
26# Run database migration
27echo "Running database migration..."
28if command -v psql &>/dev/null; then
29 psql "$DATABASE_URL" -f drizzle/0000_init.sql 2>&1 | tail -5
30 echo "Migration complete."
31else
32 echo "psql not found — run drizzle/0000_init.sql manually against your Neon DB."
33 echo "You can do this from Neon's web console (SQL Editor)."
34fi
35
36# Install deps if needed
37if [ ! -d "node_modules" ]; then
38 echo "Installing dependencies..."
39 bun install --production
40fi
41
42# Create repos directory
43mkdir -p "${GIT_REPOS_PATH:-./repos}"
44
45echo ""
46echo "=========================================="
47echo " Ready for Crontech deployment"
48echo "=========================================="
49echo ""
50echo " Start command: bun run src/index.ts"
51echo " Port: ${PORT:-3000}"
52echo " Repos dir: ${GIT_REPOS_PATH:-./repos}"
53echo ""
54echo " Environment variables needed:"
55echo " DATABASE_URL = (your Neon connection string)"
56echo " GIT_REPOS_PATH = /data/repos (or persistent volume)"
57echo " PORT = 3000"
58echo " NODE_ENV = production"
59echo ""
60echo " If Crontech routes via subdomain:"
61echo " gluecron.crontech.ai -> this service"
62echo ""
63echo " If Crontech routes via custom domain:"
64echo " gluecron.com -> this service"
65echo " (Crontech handles SSL + DNS)"
66echo ""