psibase
psibase copied to clipboard
Cargo psibase assumes local chain port
cargo psibase deploy
currently assumes the local chain is running at http://psibase.127.0.0.1.sslip.io:8080/
. There is a -a
flag for cargo psibase, but cargo psibase -a http://psibase.127.0.0.1.sslip.io:8089/ deploy ...
still fails with: error sending request for url (http://psibase.127.0.0.1.sslip.io:8080/common/tapos/head)
.
Instead, I think the chain location should be configured in the project's Cargo.toml file. Perhaps you can configure named deploy targets, like:
[psibase.hosts]
dev = "http://psibase.127.0.0.1.sslip.io:8079"
prod = "https://psibase.io:8080"
And then you can use cargo psibase --host prod deploy
@swatanabe thoughts?