doc/website/blog: fix broken page (#3354)

This commit is contained in:
Rotem Tamir
2023-02-27 15:45:46 +02:00
committed by GitHub
parent 5fd8469e8e
commit 5a93d8934b

View File

@@ -7,7 +7,8 @@ authorTwitter: _rtam
image: "https://entgo.io/images/assets/cms-blog/share.png"
---
import InstallationInstructions from '../../md/components/_installation_instructions.mdx';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
[Ent](https://entgo.io) is an open-source entity framework for Go. It is similar to more traditional ORMs, but has a
few distinct features that have made it very popular in the Go community. Ent was first open-sourced by
@@ -203,7 +204,65 @@ To view the result, [click here](https://gh.atlasgo.cloud/explore/a0e79415).
Once we have our data model defined, let's create the database schema for it.
<InstallationInstructions/>
To install the latest release of Atlas, simply run one of the following commands in your terminal, or check out the
[Atlas website](https://atlasgo.io/getting-started#installation):
<Tabs
defaultValue="apple-intel-plain+linux"
values={[
{label: 'macOS + Linux', value: 'apple-intel-plain+linux'},
{label: 'Homebrew', value: 'apple-intel-brew'},
{label: 'Go', value: 'go'},
{label: 'Docker', value: 'docker'},
{label: 'Windows', value: 'windows'},
]}>
<TabItem value="apple-intel-plain+linux">
```shell
curl -sSf https://atlasgo.sh | sh
```
</TabItem>
<TabItem value="apple-intel-brew">
```shell
brew install ariga/tap/atlas
```
</TabItem>
<TabItem value="go">
```shell
go install ariga.io/atlas/cmd/atlas@master
```
</TabItem>
<TabItem value="docker">
```shell
docker pull arigaio/atlas
docker run --rm arigaio/atlas --help
```
If the container needs access to the host network or a local directory, use the `--net=host` flag and mount the desired
directory:
```shell
docker run --rm --net=host \
-v $(pwd)/migrations:/migrations \
arigaio/atlas migrate apply
--url "mysql://root:pass@:3306/test"
```
</TabItem>
<TabItem value="windows">
Download the [latest release](https://release.ariga.io/atlas/atlas-windows-amd64-latest.exe) and
move the atlas binary to a file location on your system PATH.
</TabItem>
</Tabs>
With Atlas installed, we can create the initial migration script:
```