deployment-railway

When to use this skill

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "deployment-railway" with this command: npx skills add forever19735/garbage/forever19735-garbage-deployment-railway

When to use this skill

Deploy Flask LINE bots to Railway.app, configure environment variables, set up webhooks, and monitor deployments.

How to use it

Required Files

Procfile:

web: python main.py

requirements.txt:

Flask==3.0.0 line-bot-sdk==3.5.0 APScheduler==3.10.4 firebase-admin==6.2.0

main.py entry point:

if name == "main": port = int(os.getenv("PORT", 5000)) app.run(host="0.0.0.0", port=port)

Environment Variables

Set in Railway dashboard:

  • LINE_CHANNEL_ACCESS_TOKEN

  • LINE Bot token

  • LINE_CHANNEL_SECRET

  • Channel secret

  • FIREBASE_CONFIG_JSON

  • Complete Firebase JSON

Deployment Steps

Monitoring

Add health check:

@app.route("/", methods=['GET']) def health_check(): return "Bot is running!", 200

View logs in Railway dashboard → Deployments → View Logs

Common Issues

  • Crashed: Check Procfile and PORT usage

  • Webhook 400: Verify LINE_CHANNEL_SECRET

  • Firebase failed: Check JSON format in env var

  • No scheduled jobs: Upgrade to Hobby plan ($5/mo)

Links

  • Railway Docs

  • LINE Developers

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

multi-group-architecture

No summary provided by upstream source.

Repository SourceNeeds Review
General

firebase-integration

No summary provided by upstream source.

Repository SourceNeeds Review
General

command-design

No summary provided by upstream source.

Repository SourceNeeds Review