How to add Rust-project when using GitLab?

I use GitLab and thus can't log into my GitHub-account from Railway when using the "Rust Rocket"-template. To work around this issue, I added an empty service. Now on this empty service, I can't build my server because cargo isn't available. What can I do to fix this issue?
16 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
guess_wh0
guess_wh0OP3y ago
/bin/bash: line 1: cargo: command not found
/bin/bash: line 1: cargo: command not found
/bin/bash: line 1: cargo: command not found
/bin/bash: line 1: cargo: command not found
/bin/bash: line 1: cargo: command not found
/bin/bash: line 1: cargo: command not found
/bin/bash: line 1: cargo: command not found
/bin/bash: line 1: cargo: command not found
/bin/bash: line 1: cargo: command not found
/bin/bash: line 1: cargo: command not found
/bin/bash: line 1: cargo: command not found
/bin/bash: line 1: cargo: command not found
/bin/bash: line 1: cargo: command not found
/bin/bash: line 1: cargo: command not found
/bin/bash: line 1: cargo: command not found
/bin/bash: line 1: cargo: command not found
/bin/bash: line 1: cargo: command not found
/bin/bash: line 1: cargo: command not found
/bin/bash: line 1: cargo: command not found
/bin/bash: line 1: cargo: command not found
/bin/bash: line 1: cargo: command not found
/bin/bash: line 1: cargo: command not found
Whoops, those were the deploy-logs. Here you go:
guess_wh0
guess_wh0OP3y ago
My main problem seems to be that I can't add a Template because then railway.app forces me to log in via GitHub.
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
guess_wh0
guess_wh0OP3y ago
Railway really doesn't like me trying to copy all of that log, but I think this one should be complete:
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
guess_wh0
guess_wh0OP3y ago
I have two folders, cargo.toml is in backend/
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
guess_wh0
guess_wh0OP3y ago
I'll assume I need an isolated monorepo? I already tried this by changing the required fields (see screenshot), but it still says cargo: command not found
guess_wh0
guess_wh0OP3y ago
I did this on my main "block"
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
guess_wh0
guess_wh0OP3y ago
Took a while, but here you go:
guess_wh0
guess_wh0OP3y ago
Is there some easy way to obtain the logs? Railway loves cutting off parts of the copied content. Here's the start of the log:
==============
Using Nixpacks
==============

╔═══════════════════════════════ Nixpacks v0.4.0 ══════════════════════════════╗
║ Setup │ gcc, rust-bin.stable.latest.default { targets = ["x86_64- ║
║ │ unknown-linux-musl"] }, musl-tools, binutils ║
║──────────────────────────────────────────────────────────────────────────────║
║ Install │ ║
║──────────────────────────────────────────────────────────────────────────────║
║ Build │ mkdir -p bin ║
║ │ cargo build --release --target x86_64-unknown-linux-musl ║
║ │ cp target/x86_64-unknown-linux-musl/release/voteon_date bin ║
║──────────────────────────────────────────────────────────────────────────────║
║ Start │ ./voteon_date ║
╚══════════════════════════════════════════════════════════════════════════════╝


#1 [internal] load build definition from Dockerfile
#1 sha256:b026dba686ad25ce551007933f6a3c5942cd328d0d3a6987c0bd5a4cb00e5d9d

#1 transferring dockerfile: 2.23kB done
#1 DONE 0.0s

#2 [internal] load .dockerignore
#2 sha256:6d88317517569398276ba13b42f3ce51f008c9008c355d82b49b315d7dd7caa1
#2 transferring context: 2B done
#2 DONE 0.0s

#4 [internal] load metadata for ghcr.io/railwayapp/nixpacks:debian-1661888972
#4 sha256:9f3d2012f905fbc5aaf8b4899f00c404dde891ef37a60c22ea0c065721fb21c2

#4 DONE 0.2s

==============
Using Nixpacks
==============

╔═══════════════════════════════ Nixpacks v0.4.0 ══════════════════════════════╗
║ Setup │ gcc, rust-bin.stable.latest.default { targets = ["x86_64- ║
║ │ unknown-linux-musl"] }, musl-tools, binutils ║
║──────────────────────────────────────────────────────────────────────────────║
║ Install │ ║
║──────────────────────────────────────────────────────────────────────────────║
║ Build │ mkdir -p bin ║
║ │ cargo build --release --target x86_64-unknown-linux-musl ║
║ │ cp target/x86_64-unknown-linux-musl/release/voteon_date bin ║
║──────────────────────────────────────────────────────────────────────────────║
║ Start │ ./voteon_date ║
╚══════════════════════════════════════════════════════════════════════════════╝


#1 [internal] load build definition from Dockerfile
#1 sha256:b026dba686ad25ce551007933f6a3c5942cd328d0d3a6987c0bd5a4cb00e5d9d

#1 transferring dockerfile: 2.23kB done
#1 DONE 0.0s

#2 [internal] load .dockerignore
#2 sha256:6d88317517569398276ba13b42f3ce51f008c9008c355d82b49b315d7dd7caa1
#2 transferring context: 2B done
#2 DONE 0.0s

#4 [internal] load metadata for ghcr.io/railwayapp/nixpacks:debian-1661888972
#4 sha256:9f3d2012f905fbc5aaf8b4899f00c404dde891ef37a60c22ea0c065721fb21c2

#4 DONE 0.2s

Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
guess_wh0
guess_wh0OP3y ago
No, it failed during the build-process There's still a server-error. Deploy-logs:
No deployment logs. All output sent to stdout will be displayed here
No deployment logs. All output sent to stdout will be displayed here
Want results from more Discord servers?
Add your server