move fabric setup after environment setup in readme
This commit is contained in:
parent
13d68570e9
commit
0266a6f36d
16
README.md
16
README.md
@ -114,16 +114,13 @@ To install Fabric, [make sure Go is installed](https://go.dev/doc/install), and
|
|||||||
```bash
|
```bash
|
||||||
# Install Fabric directly from the repo
|
# Install Fabric directly from the repo
|
||||||
go install github.com/danielmiessler/fabric@latest
|
go install github.com/danielmiessler/fabric@latest
|
||||||
|
|
||||||
# Run the setup to set up your directories and keys
|
|
||||||
fabric --setup
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Environment Variables
|
### Environment Variables
|
||||||
|
|
||||||
If everything works you are good to go, but you may need to set some environment variables in your `~/.bashrc` or `~/.zshrc` file. Here is an example of what you can add:
|
You may need to set some environment variables in your `~/.bashrc` on linux or `~/.zshrc` file on mac to be able to run the `fabric` command. Here is an example of what you can add:
|
||||||
|
|
||||||
For Intel based macs
|
For Intel based macs or linux
|
||||||
```bash
|
```bash
|
||||||
# Golang environment variables
|
# Golang environment variables
|
||||||
export GOROOT=/usr/local/go
|
export GOROOT=/usr/local/go
|
||||||
@ -141,6 +138,15 @@ export GOPATH=$HOME/go
|
|||||||
export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH:
|
export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH:
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Setup
|
||||||
|
Now run the following command
|
||||||
|
```bash
|
||||||
|
# Run the setup to set up your directories and keys
|
||||||
|
fabric --setup
|
||||||
|
```
|
||||||
|
If everything works you are good to go.
|
||||||
|
|
||||||
|
|
||||||
### Migration
|
### Migration
|
||||||
|
|
||||||
If you have the Legacy (Python) version installed and want to migrate to the Go version, here's how you do it. It's basically two steps: 1) uninstall the Python version, and 2) install the Go version.
|
If you have the Legacy (Python) version installed and want to migrate to the Go version, here's how you do it. It's basically two steps: 1) uninstall the Python version, and 2) install the Go version.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user