feat: Added Orbiter deployments a4bc7495
Steve · 2025-05-13 20:28 1 file(s) · +103 −1
docs/pages/deployment/client/orbiter.mdx +103 −1
1 1
# Orbiter
2 2
3 -
Coming soon
3 +
import { Button } from 'vocs/components'
4 +
5 +
<img src="https://docs.orbiter.host/light_logo.svg" alt="orbiter" className="mx-auto" />
6 +
7 +
Much like the [inspiration](/why-bhvr) behind bhvr, [Orbiter](https://orbiter.host) is a site hosting platform built on the principles that the web should be open and without walled gardens. It features many of the things every dev wants:
8 +
9 +
- Simple CLI for local builds and deployments
10 +
- Custom Domains
11 +
- Analytics
12 +
- Version Control for easy rollbacks
13 +
- GitHub actions for automated deployments
14 +
15 +
In this guide we'll show you how to deploy your [`client`](/packages/client) to Orbiter in no time at all.
16 +
17 +
## Client Deployment
18 +
19 +
::::note
20 +
Orbiter is currently only for client side rendered sites (aka static sites)
21 +
::::
22 +
23 +
::::steps
24 +
25 +
### Setup Orbiter Account
26 +
27 +
Visit [app.orbiter.host](https://app.orbiter.host) to create a free account and make an API key on the [App Dashboard](https://app.orbiter.host) or on the [Keys Page](https://app.orbiter.host/api-keys)
28 +
29 +
### Install the Orbiter CLI and Authorize
30 +
31 +
```bash [terminal]
32 +
bun add -g orbiter-cli
33 +
```
34 +
35 +
```bash [terminal]
36 +
orbiter auth
37 +
```
38 +
39 +
### Deploy `client`
40 +
41 +
Move into the `client` package and run the `deploy` command
42 +
43 +
```bash [terminal]
44 +
cd client
45 +
46 +
orbiter deploy
47 +
```
48 +
49 +
::::
50 +
51 +
## GitHub Actions
52 +
53 +
Orbiter also offers GitHub Actions which can be used to deployment automatically.
54 +
55 +
If you haven't already, [create a free account](https://app.orbiter.host) and create your first site. Then you will need the following information:
56 +
57 +
- Project Name: This would be the name you chose when you made the site. For example, the site `mysite.orbiter.website` the name would be `mysite`
58 +
- Build Directory: The name your build directory, e.g. `dist`, `out`, `public`, etc
59 +
- Orbiter API Key: This can be created on the [API Keys Page](https://app.orbiter.host/api-keys) of the Orbiter App
60 +
- Node Version (Optional): Define the version of Node you want to use, will default to v20
61 +
- Build Command (Optional): Define the command used to build, default is `npm run build`
62 +
63 +
Once you have all of this info prepared make a new directory called `.github` in the root of your folder, then add a directory called `worflows` to it. Finally make a new file called `deploy.yaml`.
64 +
65 +
Alternatively run this in terminal:
66 +
67 +
```bash
68 +
mkdir -p .github/workflows && touch .github/workflows/deploy.yaml
69 +
```
70 +
71 +
Paste in the following code into the `deploy.yaml` file with your config listed earlier
72 +
73 +
```yaml
74 +
name: Deploy
75 +
on:
76 +
  push:
77 +
    branches: [main]
78 +
79 +
jobs:
80 +
  deploy:
81 +
    runs-on: ubuntu-latest
82 +
83 +
    steps:
84 +
      - uses: actions/checkout@v3
85 +
86 +
      - name: Deploy to Orbiter
87 +
        uses: orbiterhost/orbiter-github-actions@v0.1.4 # Update with latest version
88 +
        with:
89 +
          project-name: "mysite" # Name of your project
90 +
          build-dir: "./dist" # Name of the build output directory
91 +
          api-key: ${{ secrets.ORBITER_API_KEY }} # Will use repository secret
92 +
          # Optional inputs with their defaults
93 +
          node-version: "20.x" # Optional, defaults to '20.x'
94 +
          build-command: "npm run build" # Optional, defaults to 'npm run build'
95 +
```
96 +
97 +
Lastly you will need to add your Orbiter API Key as a Repository Secret. Navigate GitHub project Settings > Secrets and Variables > Actions. Click `New repository secret`, then use `ORBITER_API_KEY` as the name, and then paste the secret into the box below.
98 +
99 +
Then you're all set! On your next deployment you can check the `Actions` tab of the GitHub project to make sure it deployed successfully.
100 +
101 +
## Further Reference
102 +
103 +
For more information about how to use Orbiter visit the official docs with the link below
104 +
105 +
<Button href="https://docs.orbiter.host">Orbiter Docs</Button>