Open
fix(deploy): respect Railway $PORT in Docker entrypoint and add CI diagnostics#3
Conversation
|
🚅 Deployed to the bank-platform-pr-3 environment in beneficial-heart
|
…gnostics Co-authored-by: Avonce901 <243675487+Avonce901@users.noreply.github.com>
Co-authored-by: Avonce901 <243675487+Avonce901@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update deployment process for Railway and CI improvements
fix(deploy): respect Railway $PORT in Docker entrypoint and add CI diagnostics
Nov 24, 2025
Avonce901
approved these changes
Nov 24, 2025
Avonce901
approved these changes
Nov 26, 2025
Avonce901
approved these changes
Nov 26, 2025
…thods, and webhooks - Add StripeCustomer, PaymentMethod, StripePayment models - Add serializers for payment data and payment intent creation - Add StripePaymentViewSet with create_payment_intent and confirm_payment endpoints - Configure STRIPE_SECRET_KEY, STRIPE_PUBLIC_KEY, STRIPE_WEBHOOK_SECRET settings - Support Apple Pay, Google Pay, cards, and bank account payment methods - Auto-credit account on successful payment with transaction record - Register payments router in accounts URLs
… Django - Update railway.json with Django-specific build and start commands - Create .env.example with all required environment variables (no secrets) - Update RAILWAY_DEPLOYMENT.md with step-by-step Railway deployment instructions - Include Stripe webhook setup and production security checklist - Add troubleshooting section for common deployment issues
…b Actions workflow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Railway deployments were failing because the Docker entrypoint referenced a Flask app structure (
src.app:app) while the actual application is Django. CI failures lacked diagnostic context.Changes
entrypoint.sh
src.app:app→banking.wsgi:applicationcd django-banking-appto navigate to app directory$PORT(defaults to 5000) andWEB_CONCURRENCY(defaults to 4)ci-cd.yml
requirements.txtcache: 'pip'in setup-python action.dockerignore (new)
Docker Testing
Note: Dockerfile and Procfile already correct—both use shell-form CMD/variable substitution for
$PORT.Original prompt
This pull request was created as a result of the following prompt from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.