Skip to content

Commit

Permalink
doc/md: added tag example (#2666)
Browse files Browse the repository at this point in the history
  • Loading branch information
giautm authored Apr 8, 2024
1 parent 700e35d commit b49dc37
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/atlas/internal/cmdapi/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ type migrateLintFlags struct {
latest uint // --latest 1
gitBase, gitDir string // --git-base master --git-dir /path/to/git/repo
// Not enabled by default.
dirBase string // --base atlas://graph
dirBase string // --base atlas://myapp
web bool // Open the web browser
context string // Run context. See cloudapi.ContextInput.
}
Expand Down
6 changes: 3 additions & 3 deletions doc/md/atlas-schema/projects.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ tag (e.g., `master` branch) will be used.

:::note
The `remote_dir` data source predates the `atlas://` URL scheme. The example below is equivalent to executing Atlas with
`--dir "atlas://graph"`.
`--dir "atlas://myapp"`.
:::

```hcl title="atlas.hcl" {6-10}
Expand All @@ -870,8 +870,8 @@ variable "database_url" {
data "remote_dir" "migrations" {
// The slug of the migration directory in Atlas Cloud.
// In this example, the directory is named "graph".
name = "graph"
// In this example, the directory is named "myapp".
name = "myapp"
}
env {
Expand Down
1 change: 1 addition & 0 deletions doc/md/concepts/url.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ schema registry, and migrations artifactory of Atlas. For example:
```shell
atlas://dir-slug
atlas://dir-slug?version=20231201182011
atlas://dir-slug?tag=39e7e4e35fce7409bd26d25d8140061695d4ffd5
```

#### `env`
Expand Down
2 changes: 1 addition & 1 deletion doc/md/guides/modern-database-ci-cd.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ environment. This is typically done by running the following steps in your workf
atlas login --token $ATLAS_TOKEN

# deploy the latest revision of the database to the staging environment
atlas migrate apply --url mysql://user:pass@host:port/dbname --dir atlas://project-id
atlas migrate apply --url mysql://user:pass@host:port/dbname --dir atlas://dir-name
```

When you run the `atlas migrate apply` command, Atlas will connect to the target database,
Expand Down
2 changes: 1 addition & 1 deletion doc/md/versioned/down.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ or with the following commands:
env {
name = atlas.env # dynamically set
migration {
dir = "atlas://project"
dir = "atlas://myapp"
}
}
```
Expand Down

0 comments on commit b49dc37

Please sign in to comment.