https://linen.dev logo
Got a 401 when following the local run documentati...
# help
b
cf : https://docs.shuttle.rs/guide/contribute.html#running-locally everything looks ok, but at step
Deploy the example:
I got
Copy code
Error: 401 Unauthorized
message: unauthorized
any idea ?
k
Woops, sorry about that, we're in the process of updating the contributing docs. This step should solve your problem:
I see the project step is also missing, you'll need to
cargo run --manifest-path ../../../Cargo.toml --bin cargo-shuttle -- project new
as well, before deploying.
b
Thanks 🙂 , will try this right now ! if I look into the codebase the codebase the login is always done on your cloud services see : https://github.com/shuttle-hq/shuttle/blob/b00671dc32b341ad6dafba0e7ac1fb1b803a68f5/cargo-shuttle/src/lib.rs#L138, it is possible to login localy ?
missing step for ref :
Copy code
docker compose --file docker-compose.rendered.yml --project-name shuttle-dev exec gateway /usr/local/bin/service --state=/var/lib/shuttle/gateway.sqlite init --name admin --key test-key
build is running, thanks 👍
it looks like app is deployed remotely and not in local
Copy code
Last Updated:  2022-10-23T18:29:10Z
URI:           https://hello-world-rocket-app.unstable.shuttleapp.rs
so it's hosted on aws, is it expected ?
k
Yeah, like in the contributing doc:
cargo run --bin cargo-shuttle -- login --api-key "test-key"
We have a dev environment there, and there is probably a hello-world rocket app running in it, but your deployment will be local. You can curl your local deployment:
curl -H "Host: hello-world-rocket-app.unstable.shuttleapp.rs" localhost:8000/hello
I know this is a bit confusing now with the outdated docs, but thanks for testing it out anyway, it will be useful feedback when we update it 🙏