smithery/forever19735

deployment-railway

Deploy Python Flask applications to Railway.app with environment configuration and webhook setup

Installation

$ npx skills add smithery/forever19735 --skill deployment-railway

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/forever19735.

npx skills add smithery/forever19735

Browse all from smithery/forever19735

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,522 B
  • docs SUMMARY.md 122 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

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:

  • LINECHANNELACCESS_TOKEN - LINE Bot token
  • LINECHANNELSECRET - Channel secret
  • FIREBASECONFIGJSON - Complete Firebase JSON

Deployment Steps

  1. Connect GitHub repo to Railway
  2. Set environment variables
  3. Get generated domain URL
  4. Configure LINE webhook: https://your-app.up.railway.app/callback

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 LINECHANNELSECRET
  • Firebase failed: Check JSON format in env var
  • No scheduled jobs: Upgrade to Hobby plan ($5/mo)

Links