-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from notV4l/sozo-profile
add docs for sozo common options (profile/offline)
- Loading branch information
Showing
5 changed files
with
74 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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,18 @@ | ||
# offline | ||
## use sozo offline | ||
|
||
`--offline` | ||
Run without accessing the network. | ||
[env: SOZO_OFFLINE=] | ||
|
||
### USAGE | ||
|
||
```sh | ||
sozo --offline [COMMAND] | ||
``` | ||
|
||
For example | ||
|
||
```sh | ||
sozo --offline build | ||
``` |
This file contains 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,41 @@ | ||
## use sozo profiles | ||
|
||
Profiles can be convenient when dealing with multiple environments (dev, staging, prod) | ||
|
||
`--profile` | ||
Specify profile to use by name. | ||
|
||
`--dev` | ||
Use dev profile. | ||
|
||
`--release` | ||
Use release profile. | ||
|
||
|
||
### USAGE | ||
|
||
Multiple profiles can be defined in Scarb.toml | ||
|
||
```sh | ||
[profile.dev.tool.dojo.env] | ||
rpc_url = "http://localhost:5050" | ||
account_address = "0x517ececd29116499f4a1b64b094da79ba08dfd54a3edaa316134c41f8160973" | ||
private_key = "0x1800000000300000180000000000030000000000003006001800006600" | ||
|
||
[profile.staging.tool.dojo.env] | ||
rpc_url = "https://api.cartridge.gg/x/mydojoproject/katana" | ||
account_address = "0x5686a647a9cdd63ade617e0baf3b364856b813b508f03903eb58a7e622d5855" | ||
private_key = "0x33003003001800009900180300d206308b0070db00121318d17b5e6262150b" | ||
``` | ||
|
||
Then used with sozo commands | ||
|
||
```sh | ||
sozo --profile dev migrate | ||
``` | ||
|
||
is equivalent to | ||
|
||
```sh | ||
sozo migrate --rpc-url http://localhost:5050 --account-address 0x517ececd29116499f4a1b64b094da79ba08dfd54a3edaa316134c41f8160973 --private-key 0x1800000000300000180000000000030000000000003006001800006600 | ||
``` |
This file contains 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
This file contains 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