Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion api/cmd/api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"log/slog"
"os"
"os/signal"
"strings"
"syscall"

"github.com/LSUDOKOS/signal/internal/ai"
Expand Down Expand Up @@ -80,7 +81,12 @@ func main() {
postgres.NewTranslationRepository(db)

// Initialize Redis cache
cache, err := redis.NewCache(ctx, fmt.Sprintf("redis://%s", cfg.Redis.Addr))
// Render provides REDIS_URL as a full URL; locally we build it from REDIS_ADDR
redisURL := cfg.Redis.Addr
if !strings.HasPrefix(redisURL, "redis://") && !strings.HasPrefix(redisURL, "rediss://") {
redisURL = "redis://" + redisURL
}
cache, err := redis.NewCache(ctx, redisURL)
if err != nil {
slog.Error("failed to connect to redis", "error", err)
os.Exit(1)
Expand Down
4 changes: 2 additions & 2 deletions api/internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ func Load() (*Config, error) {
// because pgx can accept a full DSN. We expose it via RailwayDSN().
cfg.DB.RailwayURL = dbURL
}
if redisURL := os.Getenv("REDIS_URL"); redisURL != "" && cfg.Redis.Addr == "localhost:6379" {
cfg.Redis.Addr = redisURL // go-redis accepts full redis:// URL as Addr too
if redisURL := os.Getenv("REDIS_URL"); redisURL != "" {
cfg.Redis.Addr = redisURL // store full URL, main.go handles the prefix check
}
// Railway injects PORT
if port := os.Getenv("PORT"); port != "" {
Expand Down
4 changes: 3 additions & 1 deletion frontend/next.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
output: "standalone",
// output standalone is intentionally omitted — Vercel manages its own build output
images: {
unoptimized: true,
},
Expand All @@ -11,3 +11,5 @@ const nextConfig: NextConfig = {
};

export default nextConfig;

export default nextConfig;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,10 @@ These don't affect the core demo. All critical slash commands work perfectly.

1. **Check logs** — Look for ERROR lines
2. **Restart server** — `Ctrl+C` then `go run ./cmd/api/main.go`
3. **Verify tokens** — Run `./test_slack_token.sh`
3. **Verify tokens** — Run `../../scripts/test/test_slack_token.sh`
4. **Check guides:**
- `SLACK_EVENT_SUBSCRIPTIONS_FIX.md`
- `WORKING_FEATURES_TEST.md`
- `../setup/SLACK_EVENT_SUBSCRIPTIONS_FIX.md`
- `./WORKING_FEATURES_TEST.md`

**Last resort:**
- Create GitHub issue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,9 @@ When recording your demo video for the hackathon:

## Files Created for Debugging

1. `test_slack_token.sh` - Validate bot token
2. `SLACK_EVENT_SUBSCRIPTIONS_FIX.md` - Configuration guide
3. `watch_logs.sh` - Real-time log monitoring
1. `../../scripts/test/test_slack_token.sh` - Validate bot token
2. `../setup/SLACK_EVENT_SUBSCRIPTIONS_FIX.md` - Configuration guide
3. `../../scripts/dev/watch_logs.sh` - Real-time log monitoring
4. This file - Testing guide

---
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions test_all_features.sh → scripts/test/test_all_features.sh
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ if [ $passed -eq $total ]; then
echo "Your Signal bot is fully functional!"
echo ""
echo "Next steps:"
echo "1. Record demo video (see FINAL_STATUS_AND_TESTING.md)"
echo "1. Record demo video (see ../../project-docs/testing/FINAL_STATUS_AND_TESTING.md)"
echo "2. Create architecture diagram"
echo "3. Submit to Devpost"
echo ""
Expand All @@ -111,7 +111,7 @@ else
echo ""
echo "❌ CRITICAL ISSUES"
echo "Please check server logs and review:"
echo " - FINAL_STATUS_AND_TESTING.md"
echo " - SLACK_EVENT_SUBSCRIPTIONS_FIX.md"
echo " - ../../project-docs/testing/FINAL_STATUS_AND_TESTING.md"
echo " - ../../project-docs/setup/SLACK_EVENT_SUBSCRIPTIONS_FIX.md"
echo ""
fi
File renamed without changes.
Loading