-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/invertase/globe_cli into pa…
…tch-1
- Loading branch information
Showing
29 changed files
with
188 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
title: Logout of Globe | ||
--- | ||
|
||
# Logout | ||
|
||
The `logout` command removes any prior authentication tokens from your local machine. Once you have logged out, you will need to login again before you can deploy any projects. | ||
|
||
## Usage | ||
|
||
```bash | ||
globe logout | ||
``` | ||
|
||
A message will be displayed notifying you that you have been logged out. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Deployment Hooks | ||
--- | ||
|
||
# Deployment Hooks | ||
|
||
Deployment hooks allow you to provide a webhook endpoint that will be called throughout the lifecycle of a deployment, for example | ||
when a deployment is created, built, or deployed. | ||
|
||
Deployment hooks are in development feature and will be available soon. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
title: Deploying to Globe | ||
--- | ||
|
||
# Deployments | ||
|
||
A deployment can be triggered when you wish to deploy new code to your Globe project. In Globe, a deployment can be staged to two environments; [Production](/deployments#creating-a-production-deployment) or [Preview](/deployments#creating-a-preview-deployment). | ||
When a Production deployment has been successfully built, your domains will be updated automatically to point to the new deployment. Preview deployments on the other hand are accessible | ||
via a URL unique to the deployment. This allows you to test and share your changes on a live environment before deploying to production. | ||
|
||
![Deployments](/assets/deployments.png) | ||
|
||
Once deployments have been successfully built, you can access the unique URL from the Globe dashboard. | ||
|
||
## Creating a preview deployment | ||
|
||
To create a new preview deployment, you have two options: | ||
|
||
### via the CLI | ||
|
||
Run the [`deploy`](/cli/commands/deploy) command. By default, deployments from the CLI are staged as a preview deployment: | ||
|
||
```bash | ||
globe deploy | ||
``` | ||
|
||
### via GitHub | ||
|
||
Using the [GitHub Integration](/deployments/github-integration), you can trigger a preview deployment by pushing to a branch that | ||
is not defined as the production branch in your project settings. | ||
|
||
To learn more, view the [GitHub Integration](/deployments/github-integration) documentation. | ||
|
||
## Creating a production deployment | ||
|
||
To create a new production deployment, you have two options: | ||
|
||
### via the CLI | ||
|
||
Run the [`deploy`](/cli/commands/deploy) command with the `--prod` flag: | ||
|
||
```bash | ||
globe deploy --prod | ||
``` | ||
|
||
### via GitHub | ||
|
||
Using the [GitHub Integration](/deployments/github-integration), you can trigger a production deployment by pushing to the branch | ||
specified in your project settings. By default, this is the `main` branch. | ||
|
||
To learn more, view the [GitHub Integration](/deployments/github-integration) documentation. |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Oops, something went wrong.