Skip to content

Commit

Permalink
Point to railway.com (#585)
Browse files Browse the repository at this point in the history
* point to railway.com

* more updates from .app to .com
  • Loading branch information
coffee-cup authored Jan 8, 2025
1 parent 94a34cd commit ee981b0
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ cargo install graphql_client_cli
Then, run the following command to generate the schema:

```sh
graphql-client introspect-schema https://backboard.railway.app/graphql/v2 > src/gql/schema.json
graphql-client introspect-schema https://backboard.railway.com/graphql/v2 > src/gql/schema.json
```
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "railwayapp"
version = "3.20.1"
edition = "2021"
license = "MIT"
authors = ["Railway <contact@railway.app>"]
authors = ["Railway <contact@railway.com>"]
description = "Interact with Railway via CLI"
readme = "README.md"
homepage = "https://github.com/railwayapp/cli"
Expand All @@ -24,7 +24,8 @@ dirs = "5.0.1"
serde = { version = "1.0.217", features = ["derive"] }
serde_json = "1.0.134"
reqwest = { version = "0.12.12", default-features = false, features = [
"rustls-tls", "json"
"rustls-tls",
"json",
] }
chrono = { version = "0.4.39", features = ["serde"], default-features = false }
graphql_client = { version = "0.14.0", features = ["reqwest-rustls"] }
Expand Down
23 changes: 18 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
[![CI](https://github.com/railwayapp/cli/actions/workflows/ci.yml/badge.svg)](https://github.com/railwayapp/cliv3/actions/workflows/ci.yml)
[![cargo audit](https://github.com/railwayapp/cli/actions/workflows/cargo-audit.yml/badge.svg)](https://github.com/railwayapp/cli/actions/workflows/cargo-audit.yml)

This is the command line interface for [Railway](https://railway.app). Use it to connect your code to Railway's infrastructure without needing to worry about environment variables or configuration.
This is the command line interface for [Railway](https://railway.com). Use it to connect your code to Railway's infrastructure without needing to worry about environment variables or configuration.

[View the docs](https://docs.railway.app/develop/cli)
[View the docs](https://docs.railway.com/develop/cli)

The Railway command line interface (CLI) connects your code to your Railway project from the command line.

Expand All @@ -18,47 +18,55 @@ The Railway CLI allows you to
- Create services and databases right from the comfort of your fingertips

## Status

Currently pre-release. We are looking for feedback and suggestions. Please join our [Discord](https://discord.gg/railway) to provide feedback.

## Installation

### Cargo

```bash
cargo install railwayapp --locked
```

### Homebrew

```bash
```bash
brew install railway
```

### NPM

```bash
npm install -g @railway/cli
```

### Bash

```bash
# Install
# Install
bash <(curl -fsSL cli.new)

# Uninstall
bash <(curl -fsSL cli.new) -r
```

### Scoop

```ps1
scoop install railway
```

### Arch Linux AUR

Install using Paru

```bash
paru -S railwayapp-cli
```

Install using Yay

```bash
yay -S railwayapp-cli
```
Expand All @@ -68,11 +76,13 @@ yay -S railwayapp-cli
Before using the CLI in a non-interactive environment, ensure you have created an access token (only project-tokens are supported as of now) and set it as the `RAILWAY_TOKEN` environment variable. CI environments are automatically detected by the presence of `CI=true` variable. In these environments, only build logs will be streamed, and the CLI will exit with an appropriate code indicating success or failure.

Install from the command line

```bash
docker pull ghcr.io/railwayapp/cli:latest
```

Use in GitHub Actions

```yml
deploy-job:
runs-on: ubuntu-latest
Expand All @@ -86,6 +96,7 @@ deploy-job:
```
Use in GitLab CICD
```yml
deploy-job:
image: ghcr.io/railwayapp/cli:latest
Expand All @@ -99,10 +110,12 @@ deploy-job:
> GitLab can access a protected (secret) variable directly, all you need to do is to add it in CI/CD settings.
### From source
See [CONTRIBUTING.md](https://github.com/railwayapp/cli/blob/master/CONTRIBUTING.md) for information on setting up this repo locally.
## Documentation
[View the full documentation](https://docs.railway.app)
[View the full documentation](https://docs.railway.com)
## Feedback
Expand Down
2 changes: 1 addition & 1 deletion src/commands/docs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ pub async fn command(_args: Args, _json: bool) -> Result<()> {
return Ok(());
}

::open::that("https://docs.railway.app/")?;
::open::that("https://docs.railway.com")?;
Ok(())
}
6 changes: 3 additions & 3 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ impl Configs {

pub fn get_host(&self) -> &'static str {
match Self::get_environment_id() {
Environment::Production => "railway.app",
Environment::Staging => "railway-staging.app",
Environment::Dev => "railway-develop.app",
Environment::Production => "railway.com",
Environment::Staging => "railway-staging.com",
Environment::Dev => "railway-develop.com",
}
}

Expand Down

0 comments on commit ee981b0

Please sign in to comment.