Skip to content

Conversation

@charlesvdd
Copy link

Pull Request template

Please, go through these steps before you submit a PR.

  1. Make sure that your PR is not a duplicate.

  2. If not, then make sure that:

    a. You have done your changes in a separate branch. Branches MUST have descriptive names that start with either the fix/ or feature/ prefixes. Good examples are: fix/signin-issue or feature/issue-templates.

    b. You have a descriptive commit message with a short title (first line).

    c. You have only one commit (if not, squash them into one commit).

    d. pnpm test doesn't throw any error. If it does, fix them first and amend your commit (git commit --amend).

  3. After these steps, you're ready to open a pull request.

    a. Give a descriptive title to your PR.

    b. Describe your changes.

    c. Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if such).

    d. Add the corresponding labels to your pull request (ex: feature, improvement, bug...)

IMPORTANT: Please review the CONTRIBUTING.md file for detailed contributing guidelines.

PLEASE REMOVE THIS TEMPLATE BEFORE SUBMITTING

claude and others added 4 commits December 11, 2025 17:40
- Add Dockerfile at root with multi-stage build that clones submodules
- Add railway.toml to configure Docker-based build instead of Railpack
- Update .gitmodules to use HTTPS URLs for Railway compatibility

This resolves the "Railpack could not determine how to build" error
by explicitly using Docker for the build process.
Add comprehensive Railway deployment support with documentation:

## New Files
- railway/README.md: Complete deployment guide (all-in-one & multi-service)
- railway/QUICKSTART.md: 5-minute deployment guide
- railway/.env.example: All environment variables with descriptions
- railway/generate-keys.sh: Script to generate security keys
- railway/runner-railway.sh: Optimized runner for Railway (no Docker-in-Docker)
- railway/railway.json: Alternative JSON configuration
- railway/template.json: Railway template for one-click deploy

## Modified Files
- Dockerfile: Auto-detects Railway and uses optimized runner
- railway.toml: Enhanced configuration with build args and docs

## Features
- Automatic security key generation if not provided
- Support for external PostgreSQL/Redis (Railway plugins)
- Optional embedded DB mode for simple deployments
- Health checks and restart policies configured
- Volume mount support for data persistence
Le fichier de configuration Railway avait la commande de démarrage commentée. Sans cela, le conteneur ne savait pas quel script lancer pour démarrer tous les services (Nginx, Rails, Sidekiq).

Modification : J'ai décommenté startCommand = [runner-railway.sh](http://_vscodecontentref_/1)".
Permissions du script (Dockerfile) :
Le script runner-railway.sh est copié dans l'image Docker mais n'était pas rendu exécutable, ce qui aurait provoqué une erreur "Permission denied" au démarrage.

Modification : J'ai ajouté RUN chmod +x ./runner-railway.sh dans le Dockerfile.
3. Comment déployer sur Railway
Le projet est maintenant prêt. Voici comment procéder sur Railway :

Créer un nouveau projet sur Railway à partir de ce dépôt GitHub.
Railway détectera automatiquement le fichier railway.toml et utilisera le Dockerfile à la racine.
Configuration des services (Base de données & Redis) :
Option Recommandée (Production) : Ajoutez un service PostgreSQL et un service Redis dans votre projet Railway. Railway injectera automatiquement les variables DATABASE_URL et REDIS_URL. Le script de démarrage les utilisera par défaut.
Option "Tout-en-un" (Test/Démo) : Si vous ne voulez pas ajouter de services externes et tout faire tourner dans le même conteneur (moins performant, données volatiles si pas de volume), ajoutez ces variables d'environnement dans Railway :
@jdenquin
Copy link
Contributor

jdenquin commented Jan 2, 2026

Hello @charlesvdd

This PR looks strange, can you add some context? Otherwise I'll close it

@jdenquin jdenquin closed this Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants