deploy by railwayapp/railway-skills
npx skills add https://github.com/railwayapp/railway-skills --skill deploy使用 railway up 将当前目录的代码部署到 Railway。
始终使用 -m 标志并附带描述性的提交信息,总结部署的内容:
railway up --detach -m "添加用户认证端点"
良好的提交信息:
启动部署并立即返回。适用于大多数部署场景。
railway up --detach -m "此处填写部署描述"
流式传输构建日志直至完成。当用户希望观察构建过程或需要调试问题时使用。
railway up --ci -m "此处填写部署描述"
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
何时使用 CI 模式:
默认部署到已链接的服务。要部署到其他服务:
railway up --detach --service backend -m "此处填写部署描述"
无需先链接,直接部署到项目:
railway up --project <project-id> --environment production --detach -m "此处填写部署描述"
需要同时使用 --project 和 --environment 标志。
| 标志 | 描述 |
|---|---|
-m, --message <MSG> | 描述部署的提交信息(务必使用此选项) |
-d, --detach | 不附加到日志(默认) |
-c, --ci | 流式传输构建日志,完成后退出 |
-s, --service <NAME> | 目标服务(默认为已链接的服务) |
-e, --environment <NAME> | 目标环境(默认为已链接的环境) |
-p, --project <ID> | 目标项目(需要配合 --environment 使用) |
[PATH] | 要部署的路径(默认为当前目录) |
Railway CLI 会向上遍历目录树以查找已链接的项目。如果您位于已链接项目的子目录中,则无需重新链接。
对于子目录部署,建议通过环境技能设置 rootDirectory,然后正常使用 railway up 进行部署。
正在部署到 <service>...
使用 deployment 技能检查构建状态(配合 --lines 标志)。
构建日志会以内联方式流式传输。如果构建失败,错误信息将出现在输出中。
在 CI 模式后请勿运行 railway logs --build - 日志已经流式传输过了。如果您需要更多上下文,请使用 deployment 技能配合 --lines 标志(切勿流式传输)。
service 技能deployment 技能environment 技能environment 技能未链接到 Railway 项目。请先运行 `railway link`。
未链接服务。请使用 --service 标志或运行 `railway service` 选择一个服务。
构建日志已经流式传输 - 直接从 railway up --ci 的输出中分析它们。在 CI 模式后请勿运行 railway logs(没有 --lines 标志它会无限流式传输)。
常见问题:
每周安装次数
942
仓库
GitHub 星标数
209
首次出现
2026年1月20日
安全审计
安装于
opencode801
codex786
gemini-cli746
github-copilot710
claude-code706
amp616
Deploy code from the current directory to Railway using railway up.
Always use the -m flag with a descriptive commit message summarizing what's being deployed:
railway up --detach -m "Add user authentication endpoint"
Good commit messages:
Starts deploy and returns immediately. Use for most deploys.
railway up --detach -m "Deploy description here"
Streams build logs until complete. Use when user wants to watch the build or needs to debug issues.
railway up --ci -m "Deploy description here"
When to use CI mode:
Default is linked service. To deploy to a different service:
railway up --detach --service backend -m "Deploy description here"
Deploy to a project without linking first:
railway up --project <project-id> --environment production --detach -m "Deploy description here"
Requires both --project and --environment flags.
| Flag | Description |
|---|---|
-m, --message <MSG> | Commit message describing the deploy (always use this) |
-d, --detach | Don't attach to logs (default) |
-c, --ci | Stream build logs, exit when done |
-s, --service <NAME> | Target service (defaults to linked) |
-e, --environment <NAME> | Target environment (defaults to linked) |
-p, --project <ID> |
Railway CLI walks UP the directory tree to find a linked project. If you're in a subdirectory of a linked project, you don't need to relink.
For subdirectory deployments, prefer setting rootDirectory via the environment skill, then deploy normally with railway up.
Deploying to <service>...
Use deployment skill to check build status (with --lines flag).
Build logs stream inline. If build fails, the error will be in the output.
Do NOT runrailway logs --build after CI mode - the logs already streamed. If you need more context, use deployment skill with --lines flag (never stream).
service skilldeployment skillenvironment skillenvironment skillNo Railway project linked. Run `railway link` first.
No service linked. Use --service flag or run `railway service` to select one.
The build logs already streamed - analyze them directly from the railway up --ci output. Do NOT run railway logs after CI mode (it streams forever without --lines).
Common issues:
Weekly Installs
942
Repository
GitHub Stars
209
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykPass
Installed on
opencode801
codex786
gemini-cli746
github-copilot710
claude-code706
amp616
Azure 升级评估与自动化工具 - 轻松迁移 Functions 计划、托管层级和 SKU
59,200 周安装
LangSmith Fetch 代理调试技能 - 快速调试 LangChain/LangGraph 代理执行轨迹
913 周安装
内容引擎:AI驱动的内容创作与多平台分发工具,实现高效内容再利用与原生适配
915 周安装
Coinbase钱包充值指南:使用USDC通过多种支付方式为钱包充值
916 周安装
Defuddle 网页内容提取工具 - 一键去除广告侧边栏,输出干净 Markdown
916 周安装
前端设计技能:告别通用AI UI,打造独特、生产级、令人难忘的界面
917 周安装
Medusa 管理面板自定义开发指南:使用 Admin SDK 和 UI 组件构建扩展
918 周安装
| Target project (requires --environment) |
[PATH] | Path to deploy (defaults to current directory) |