-
Notifications
You must be signed in to change notification settings - Fork 8
[Superseded by 214] Moved how to content out of reference topics #205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
MadelineAu
wants to merge
1
commit into
main
Choose a base branch
from
moveProjManagementHowToContent
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
27 changes: 27 additions & 0 deletions
27
docs/eigencompute/howto/build/set-up-multiple-environments.md
This file contains hidden or 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,27 @@ | ||
| --- | ||
| title: Set Up Multiple Environments | ||
| sidebar_position: 4 | ||
| --- | ||
|
|
||
| ```bash | ||
| # Development | ||
| eigenx environment set dev | ||
| eigenx app create api-dev typescript | ||
| cd api-dev | ||
| eigenx app deploy | ||
|
|
||
| # Staging | ||
| cd .. | ||
| eigenx environment set staging | ||
| eigenx app create api-staging typescript | ||
| cd api-staging | ||
| eigenx app deploy | ||
|
|
||
| # Production | ||
| cd .. | ||
| eigenx environment set prod | ||
| eigenx app create api-prod typescript | ||
| cd api-prod | ||
| eigenx app configure tls | ||
| eigenx app deploy | ||
| ``` | ||
This file contains hidden or 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,52 @@ | ||
| --- | ||
| title: Start New Project | ||
| sidebar_position: 1 | ||
| --- | ||
|
|
||
| The high level steps to start and deploy a new project are: | ||
|
|
||
| ## 1. Create from template | ||
|
|
||
| ``` | ||
| eigenx app create my-app typescript | ||
| ``` | ||
|
|
||
| For more information, refer to [Create Application](create-app-from-template.md). | ||
|
|
||
| ## 2. Configure environment | ||
|
|
||
| ```bash | ||
| cd my-app | ||
| cp .env.example .env | ||
| ``` | ||
|
|
||
| Edit `.env` with your settings. | ||
|
|
||
| ## 3. Test locally (if needed) | ||
|
|
||
| ```bash | ||
| npm install | ||
| npm run dev | ||
| ``` | ||
|
|
||
| ## 4. Deploy to TEE | ||
|
|
||
| ``` | ||
| eigenx app deploy | ||
| ``` | ||
|
|
||
| ## 5. Set a friendly name | ||
|
|
||
| ``` | ||
| eigenx app name <app-id> my-production-app | ||
| ``` | ||
|
|
||
| For more information, refer to [Name Application](../configure/name-application.md). | ||
|
|
||
| ## 6. (Optional) Add TLS if needed | ||
|
|
||
| ```bash | ||
| eigenx app configure tls | ||
| ``` | ||
|
|
||
| For more inforamtion, refer to [Configure TLS](../deploy-to-production/configure-tls.md). |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| --- | ||
| title: Use App Wallet | ||
| sidebar_position: 2 | ||
| sidebar_position: 3 | ||
| --- | ||
|
|
||
| :::important | ||
|
|
||
This file contains hidden or 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,69 @@ | ||
| --- | ||
| title: Name Application | ||
| sidebar_position: 3 | ||
| --- | ||
|
|
||
| Configuring an application name provides the following benefits: | ||
|
|
||
| - Easier to remember - Use descriptive names instead of IDs | ||
| - Better organization - Distinguish between multiple apps | ||
| - Simplified commands - Type less when managing apps | ||
| - Team collaboration - Share meaningful app names with team members | ||
|
|
||
| Use cases include: | ||
|
|
||
| - Multiple environments - `api-dev`, `api-staging`, `api-prod` | ||
| - Multiple apps - `trading-bot`, `monitoring-service`, `data-processor` | ||
| - Version tracking - `api-v1`, `api-v2` | ||
| - Team clarity - Meaningful names for team members | ||
|
|
||
| ## Name a newly deployed app | ||
|
|
||
| ```bash | ||
| # After deployment, you get an app ID | ||
| eigenx app deploy | ||
| # Output: Deployed successfully! App ID: app-1a2b3c4d | ||
|
|
||
| # Set a friendly name | ||
| eigenx app name app-1a2b3c4d trading-bot | ||
| ``` | ||
|
|
||
| Output: | ||
| ``` | ||
| ✓ App renamed successfully | ||
|
|
||
| App ID: app-1a2b3c4d | ||
| Name: trading-bot | ||
|
|
||
| You can now use 'trading-bot' in place of the app ID in commands. | ||
| ``` | ||
|
|
||
| ## Rename an existing app | ||
|
|
||
| ```bash | ||
| eigenx app name trading-bot production-trading-bot | ||
| ``` | ||
|
|
||
| ## Use the friendly name in commands | ||
|
|
||
| ```bash | ||
| # These are now equivalent: | ||
| eigenx app info trading-bot | ||
| eigenx app info app-1a2b3c4d | ||
|
|
||
| eigenx app logs trading-bot | ||
| eigenx app logs app-1a2b3c4d | ||
| ``` | ||
|
|
||
| ## Naming Best Practices | ||
|
|
||
| Good names: | ||
| - `production-api` | ||
| - `staging-web-app` | ||
| - `discord-bot-v2` | ||
| - `ml-inference-service` | ||
|
|
||
| Avoid: | ||
| - Generic names: `app1`, `test`, `new` | ||
| - Special characters: `my@app`, `app#123` | ||
| - Spaces: `my app` (use hyphens: `my-app`) |
This file contains hidden or 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,36 @@ | ||
| --- | ||
| title: Deploy Existing Project | ||
| sidebar_position: 1 | ||
| --- | ||
|
|
||
| You don't need to use `eigenx app create` if you have an existing project. The CLI works with any Docker-based project: | ||
|
|
||
| ## 1. Navigate to your project | ||
|
|
||
| ```bash | ||
| cd my-existing-project | ||
| ``` | ||
|
|
||
| ## 2. Create .env if needed | ||
|
|
||
| ```bash | ||
| touch .env | ||
| ``` | ||
|
|
||
| Add your environment variables. | ||
|
|
||
| ## 3. Deploy | ||
|
|
||
| Ensure you have a Dockerfile and .env. The CLI will prompt if not found. | ||
|
|
||
| ```bash | ||
| eigenx app deploy | ||
| ``` | ||
|
|
||
| # 5. Add TLS if needed | ||
|
|
||
| ```bash | ||
| eigenx app configure tls | ||
| ``` | ||
|
|
||
| For more information, refer to [Configure TLS](../deploy-to-production/configure-tls.md). |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is wrong - we don't have these environment
we have these two
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And devs using eigenx aren't creating new environments anyway are they? Removing this section.