-
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.
* docs: update * docs: updated sidebar for cli * docs: added tab for backend and frontend in getting started * docs: added header for deployment * docs: updated tab titles * docs: update structure * docs: changed location of info * docs: update framework wording * docs: mention cli in getting started * docs: test * docs: updated framework * docs: sidebar * docs: split deployments * docs: sidebar * docs: reword * docs: new assets * docs: flutter web * docs: flutter web text update * docs: flutter web title * docs: flutter web framework * docs: flutter web build_runner * docs: l * docs: flutter web * docs: flweb * docs: build settings fl web * docs: favicon * docs: fixed favicon * docs: github integration * docs: renamed asset * docs: update github * docs: typo * docs: fix wording * docs: add limits as a seperate page * docs: limits header * docs: fix typo
- Loading branch information
1 parent
8591491
commit 3673e1a
Showing
25 changed files
with
287 additions
and
90 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,22 @@ | ||
--- | ||
title: View Build Logs | ||
description: View Build Logs for a given deployment ID within the CLI | ||
--- | ||
|
||
# Build Logs | ||
|
||
The `build-logs` command allows you to view the live build logs of a running deployment. The deployment must be in the `building` state for this command to work. The --deployment flag is required. | ||
|
||
## Usage | ||
|
||
To use, run the following command with the deployment ID of the currently running deployment. | ||
|
||
```bash | ||
globe build-logs -d <DEPLOYMENT-ID> | ||
``` | ||
|
||
### Flags | ||
|
||
The command has flags (in addition to [global flags](/cli#global-flags)) that can be used to modify the behavior of the command, which can be accessed by running `globe build-logs --<flag>`: | ||
|
||
- `-d, --deployment` - Provide the deployment ID of the deployment you want to view the build logs for |
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,28 @@ | ||
--- | ||
title: Update the Globe CLI | ||
description: Update the Globe CLI to the latest version | ||
--- | ||
|
||
# Update | ||
|
||
The `update` command allows you to update the currently installed Globe CLI to the latest version available. | ||
|
||
## Updates Available | ||
|
||
While using the CLI, if a newer version is available, it will be shown as the first output as follows: | ||
``` | ||
Update available! 0.0.2 → 0.0.3 | ||
Run globe update to update | ||
``` | ||
|
||
## Usage | ||
|
||
To use, run the following command and the latest version of the CLI will be downloaded and installed and the current CLI will be updated to the latest version | ||
|
||
```bash | ||
globe update | ||
``` | ||
|
||
### Flags | ||
|
||
The command has no additional flags. |
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,23 @@ | ||
--- | ||
title: Flutter Web | ||
--- | ||
|
||
# Flutter Web | ||
|
||
To deploy a Flutter Web Application, you can add it via the [Github Integration](/deployments/github-integration) or if you use the CLI, you can run the following command in the root of the project: | ||
|
||
```bash | ||
globe deploy | ||
``` | ||
|
||
Globe will automatically apply the correct preset and deploy your application. The build system will auto-detect `build_runner` if used and runs it during the building stage of the deployment. | ||
|
||
For a more detailed example, [click here](/getting-started/flutter-web). | ||
|
||
## How it works | ||
|
||
Globe builds your Flutter Application for the Web and uploads the built files to our globally distributed CDN network. Hence, your application is always served from a location nearest to the user thus reducing latency and improving load times. | ||
|
||
## Automatic Optimizations | ||
|
||
Globe hashes your assets and applies filename fingerprinting to vastly improve cache performance. This also ensures your files are correctly updated by the browser for every new deployment. |
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,50 @@ | ||
--- | ||
title: Deploy Flutter Web | ||
--- | ||
|
||
# Deploy a Flutter Web Application | ||
|
||
To get started, we're going to create a Flutter application and deploy Flutter Web to Globe. Globe has pre-configured build presets and it will be automatically detected and applied. If your application uses `build_runner`, then it will also automatically be detected and runs it during the building stage of the deployment. | ||
|
||
## Create a new Flutter project | ||
|
||
To create a basic Flutter application, in your terminal, run the following command where you'd like to create a project: | ||
|
||
```bash | ||
flutter create my_flutter_app | ||
cd my_flutter_app | ||
``` | ||
|
||
## Deployment | ||
|
||
Deploying to Globe is simple; run the `globe deploy` command from your project root in the terminal: | ||
|
||
```bash | ||
globe deploy | ||
``` | ||
|
||
The first time you deploy, you'll: | ||
|
||
1. Be prompted to continue with the setup of the deployment (press `Y`) | ||
1. Enter a name for your project: Enter: `my-flutter-app` | ||
|
||
The CLI will show the following output: | ||
``` | ||
Detected "Flutter" preset, would you like to use the default build settings? (Y/n) | ||
``` | ||
Press <kbd>Enter</kbd> to accept these build settings. | ||
|
||
After waiting for a couple of seconds, you'll be shown that your new deployment has been queued and be provided a unique URL for that deployment. You can visit this URL in your browser to view the build logs and deployment status. You can also use the [`build-logs`](/cli/commands/build-logs) command to view the logs directly from the CLI. | ||
|
||
## View your application | ||
|
||
Once complete, your deployment will be available via the URL shown in the dashboard. Each deployment has its own unique URL, with a `globeapp.dev` domain. Click the URL and you'll visit your Flutter Web Application. | ||
|
||
![Flutter Web Application](/assets/flutter-web.png) | ||
|
||
## Further reading | ||
|
||
- [Flutter Web Framework Preset](/frameworks/flutter-web) | ||
- [Learn about managing your deployments](/deployments) | ||
- [Learn about the Globe CLI](/cli) | ||
- [Integrate with GitHub](/deployments/github-integration) |
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,45 @@ | ||
--- | ||
title: Getting started with Globe | ||
--- | ||
|
||
# Getting Started | ||
|
||
To get started using Globe, ensure you have [logged in](https://globe.dev/login) to your account. | ||
|
||
There are two ways to deploy to Globe: | ||
- Using the [Globe CLI](#install-the-globe-cli-optional), or | ||
- Using the [GitHub integration](/deployments/github-integration) | ||
|
||
## Install the Globe CLI (optional) | ||
|
||
The Globe CLI is a command line tool that allows you to interact with your Globe account and deploy from the command line. It is not required to use Globe, but it can be useful for some workflows. | ||
|
||
#### Pre-requisites | ||
|
||
To get started, you must have the [Dart SDK](https://dart.dev/get-dart) installed on your machine. | ||
|
||
#### Installation | ||
|
||
To install the Globe CLI, run the following command: | ||
|
||
```bash | ||
dart pub global activate globe_cli | ||
``` | ||
|
||
Once installed, you can access the globe executable from anywhere on your machine. | ||
|
||
To login with your Globe account, run the following command: | ||
|
||
```bash | ||
globe login | ||
``` | ||
|
||
To learn more about the CLI, view the [documentation](/cli). | ||
|
||
## Deploying your first application | ||
|
||
You can deploy your Dart applications to a Globally distributed network using the [framework of your choice](/frameworks). It is possible to deploy both Backend and Frontend applications as shown below. For simplicity, the CLI will be used for deployment. | ||
|
||
- [Backend Shelf Server](/getting-started/shelf-server) | ||
- [Frontend Flutter Web Application](/getting-started/flutter-web) | ||
|
Oops, something went wrong.