https://linen.dev logo
Deployment Difficulties
# help
b
Evening everyone, I was attempting to move my personal dev site to Shuttle. Code is here: https://github.com/sentinel1909/jeff-mitchell-dev.git. I can run locally using cargo shuttle run, but I can't deploy to shuttle. I've initialized the project using cargo shuttle init --axum, done cargo shuttle project new, and logged in using cargo shuttle login (API key taken from the web site). When I do cargo shuttle deploy, I receive: Error: 401 unauthorized, message: unauthorized. I have another small project deployed on Shuttle and the same message is received when doing cargo shuttle status on this one. I'm running WSL on Windows 11.
k
Hey! Could you double-check that your API key is correctly set (it is set by
cargo shuttle login
)? You should find it in one of these directories, depending on your OS: , under
shuttle/config.toml
.
b
The API key appears to be correctly set, I checked under ~/.config/shuttle/config.toml and it's there.
I deleted everything and started up a brand new project called jdm-server, which is located under ~/dev/source/repos/jeff-mitchell-dev. I just scaffolded a bare bones Axum starter, using cargo shuttle init and walking through the prompts. I then did a cargo build followed by a cargo shuttle run. Everything works locally. Then, I did cargo shuttle deploy and received: Error 404 not found, message: project not found. Run
cargo shuttle project new
to create a new project, which I've already done. If I do cargo shuttle project list, the new project appears in the list and seems to be there.
I didn't have this much trouble with my nasa-imagery-viewer site, which is happily running.
When I do cargo shuttle project new, I get a message that "a project with the same name already exists"
I nuked the github repo linked in my post above BTW, so it won't work anymore.