Add Django, Rails integration instructions to docs and move cli login to overview page

This commit is contained in:
Tuan Dang
2022-11-29 19:38:41 -05:00
parent c6777e43ed
commit 6468b356a6
8 changed files with 51 additions and 19 deletions
+6
View File
@@ -95,3 +95,9 @@ The Infisical CLI provides a way to inject environment variables from the platfo
</Tab> </Tab>
</Tabs> </Tabs>
## Log in to the Infisical CLI
```bash
infisical login
```
+5 -11
View File
@@ -4,12 +4,6 @@ title: "Usage"
Prerequisite: [Install the CLI](/cli/overview) Prerequisite: [Install the CLI](/cli/overview)
## Log in to the Infisical CLI
```bash
infisical login
```
## Initialize Infisical for your project ## Initialize Infisical for your project
```bash ```bash
@@ -29,11 +23,11 @@ infisical run -- [your application start command]
Options you can specify: Options you can specify:
| Option | Description | Default value | | Option | Description | Default value |
| ------------- | ----------------------------------------------------------------------------------------------------------- | ------------- | | ------------- | ----------------------------------------------------------------------------------------------------------- | ------------- |
| `--env` | Used to set the environment that secrets are pulled from. Accepted values: `dev`, `staging`, `test`, `prod` | `dev` | | `--env` | Used to set the environment that secrets are pulled from. Accepted values: `dev`, `staging`, `test`, `prod` | `dev` |
| `--projectId` | Used to link a local project to the platform (required only if injecting via the service token method) | `None` | | `--projectId` | Used to link a local project to the platform (required only if injecting via the service token method) | `None` |
| `--expand` | Parse shell parameter expansions in your secrets (e.g., `${DOMAIN}`) | `true` | | `--expand` | Parse shell parameter expansions in your secrets (e.g., `${DOMAIN}`) | `true` |
## Examples: ## Examples:
+17 -1
View File
@@ -2,4 +2,20 @@
title: "Django" title: "Django"
--- ---
Instructions coming soon. Prerequisite: [Install the CLI](/cli/overview)
## Initialize Infisical for your [Django](https://www.djangoproject.com) project
```bash
# move to your Django project
cd /path/to/project
# initialize infisical
infisical init
```
## Start your server with environment variables injected
```bash
infisical run -- python manage.py runserver
```
@@ -1,5 +1,5 @@
--- ---
title: "Fibre" title: "Fiber"
--- ---
Coming soon. Coming soon.
+1 -1
View File
@@ -4,7 +4,7 @@ title: "Next.js"
Prerequisite: [Install the CLI](/cli/overview) Prerequisite: [Install the CLI](/cli/overview)
## Initialize Infisical for your [Next.js](https://nextjs.org) ## Initialize Infisical for your [Next.js](https://nextjs.org) app
```bash ```bash
# move to your Next.js app # move to your Next.js app
+17 -1
View File
@@ -2,4 +2,20 @@
title: "Ruby on Rails" title: "Ruby on Rails"
--- ---
Instructions coming soon. Prerequisite: [Install the CLI](/cli/overview)
## Initialize Infisical for your [Rails](https://rubyonrails.org) app
```bash
# move to your Rails app
cd /path/to/project
# initialize infisical
infisical init
```
## Start your server with environment variables injected
```bash
infisical run -- bin/rails server
```
+3 -3
View File
@@ -31,8 +31,8 @@ Missing an integration? Throw in a [request](https://github.com/Infisical/infisi
| [Gatsby](/integrations/frameworks/gatsby) | Framework | Available | | [Gatsby](/integrations/frameworks/gatsby) | Framework | Available |
| [Remix](/integrations/frameworks/remix) | Framework | Available | | [Remix](/integrations/frameworks/remix) | Framework | Available |
| [Vite](/integrations/frameworks/vite) | Framework | Available | | [Vite](/integrations/frameworks/vite) | Framework | Available |
| [Fibre](/integrations/frameworks/fibre) | Framework | Coming soon | | [Fiber](/integrations/frameworks/fiber) | Framework | Coming soon |
| [Django](/integrations/frameworks/django) | Framework | Coming soon | | [Django](/integrations/frameworks/django) | Framework | Available |
| [Flask](/integrations/frameworks/flask) | Framework | Available | | [Flask](/integrations/frameworks/flask) | Framework | Available |
| [Laravel](/integrations/frameworks/laravel) | Framework | Coming soon | | [Laravel](/integrations/frameworks/laravel) | Framework | Coming soon |
| [Ruby on Rails](/integrations/frameworks/rails) | Framework | Coming soon | | [Ruby on Rails](/integrations/frameworks/rails) | Framework | Available |
+1 -1
View File
@@ -142,7 +142,7 @@
"integrations/frameworks/gatsby", "integrations/frameworks/gatsby",
"integrations/frameworks/remix", "integrations/frameworks/remix",
"integrations/frameworks/vite", "integrations/frameworks/vite",
"integrations/frameworks/fibre", "integrations/frameworks/fiber",
"integrations/frameworks/django", "integrations/frameworks/django",
"integrations/frameworks/flask", "integrations/frameworks/flask",
"integrations/frameworks/laravel", "integrations/frameworks/laravel",