본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)33k · #8904

railway-deploy

하는 일

이 스킬은 현재 폴더의 코드를 Railway에 올립니다. 변경 사항을 Railway 서비스에 빠르게 배포하려는 개발자에게 맞습니다.

사용하는 경우

  • ✓Railway에 코드를 배포하거나 푸시하라고 요청할 때.
  • ✓배포 중 빌드 로그를 지켜보며 오류를 바로 고치고 싶을 때.
  • ✓특정 서비스나 이 폴더와 연결되지 않은 프로젝트에 배포해야 할 때.

스킬 링크

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/railway/deploy/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/railway/deploy/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 변경 사항을 Railway에 배포하고 빌드를 지켜봐서, 오류가 나면 바로 고칠 수 있게 해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 Railway 명령줄 도구를 실행해 현재 폴더를 업로드합니다. 바로 돌아가도록 분리 모드로 하거나, 끝날 때까지 빌드 로그를 스트리밍하는 CI 모드로 실행합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Railway Deploy

Deploy code from the current directory to Railway using railway up.

When to Use

  • User asks to "deploy", "ship", "push code"
  • User says "railway up" or "deploy to Railway"
  • User wants to deploy local code changes
  • User says "deploy and fix any issues" (use --ci mode)

Modes

Detach Mode (default)

Starts deploy and returns immediately. Use for most deploys.

railway up --detach

CI Mode

Streams build logs until complete. Use when user wants to watch the build or needs to debug issues.

railway up --ci

When to use CI mode:

  • User says "deploy and watch", "deploy and fix issues"
  • User is debugging build failures
  • User wants to see build output

Deploy Specific Service

Default is linked service. To deploy to a different service:

railway up --detach --service backend

Deploy to Unlinked Project

Deploy to a project without linking first:

railway up --project <project-id> --environment production --detach

Requires both --project and --environment flags.

CLI Options

Flag Description
-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> Target project (requires --environment)
[PATH] Path to deploy (defaults to current directory)

Directory Linking

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 railway-environment skill, then deploy normally with railway up.

After Deploy

Detach mode

Deploying to <service>...

Use railway-deployment skill to check build status (with --lines flag).

CI mode

Build logs stream inline. If build fails, the error will be in the output.

Do NOT run railway logs --build after CI mode - the logs already streamed. If you need more context, use railway-deployment skill with --lines flag (never stream).

Composability

  • Check status after deploy: Use railway-service skill
  • View logs: Use railway-deployment skill
  • Fix config issues: Use railway-environment skill
  • Redeploy after config fix: Use railway-environment skill

Error Handling

No Project Linked

No Railway project linked. Run `railway link` first.

No Service Linked

No service linked. Use --service flag or run `railway service` to select one.

Build Failure (CI mode)

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:

  • Missing dependencies → check package.json/requirements.txt
  • Build command wrong → use railway-environment skill to fix
  • Dockerfile issues → check dockerfile path
자주 묻는 질문

분리 모드란 무엇인가요?

배포를 시작하고 빌드 로그를 보여주지 않은 채 바로 돌아가는 방식이며, 대부분의 배포에서 기본값입니다.

다른 서비스에 배포할 수 있나요?

네. 서비스 이름을 지정하거나, 이 폴더와 연결되지 않은 프로젝트라면 프로젝트와 환경을 지정할 수 있습니다.

처음 설정이나 서비스 생성은 어떻게 하나요?

설정이나 서비스 생성은 railway-new 스킬을 안내합니다.

상세 정보

작성자의 원본 설명

Deploy code to Railway using "railway up". Use when user wants to push code, says "railway up", "deploy", "ship", or "push". For initial setup or creating services, use railway-new skill. For Docker images, use railway-environment skill.

repo: davila7/claude-code-templates

인기도

GitHub 스타
33k
순위
#8904
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬