R
Railway

✋|help

Not able to deploy Rust application. Rocket Template

GOgemcoder (old)5/13/2023
I'm using cargo build --release to build and then cargo run --binary api but it does not product any binary for the deploy command. Whenever I call ls -R ./ it will return:
./:
bin
./bin:
api
./bin/api:
Cargo.lock
Cargo.toml
src
./bin/api/src:
main.rs
./:
bin
./bin:
api
./bin/api:
Cargo.lock
Cargo.toml
src
./bin/api/src:
main.rs
No binaries here.
PPercy5/13/2023
Project ID: bbe995ee-c6df-4d23-b96f-15f189f8d8a9
GOgemcoder (old)5/13/2023
Seems like binaries not being moved into deploy stage I simply need to run deploy as cargo build --release and then run cargo run --bin api @erikh @Brody who would be the best people to help with this? Thank you!
BBrody5/13/2023
erikh would, i dont know rust
UUUnknown User5/13/2023
4 Messages Not Public
Sign In & Join Server To View
BBrody5/13/2023
id also just like to ask, whats wrong with the default way nixpacks would build and start your rust app?
UUUnknown User5/13/2023
3 Messages Not Public
Sign In & Join Server To View
BBrody5/13/2023
im sure you will get to know it in time 😉
UUUnknown User5/13/2023
2 Messages Not Public
Sign In & Join Server To View
GOgemcoder (old)5/14/2023
I have a workspace setup and I have multiple binaries, rust suggest to put binaries under bin folder NIXPACKS_NO_MUSL=1 solved the issue, no idea why tho 9a3dfee5-c7f3-46c4-b704-cb67b7289326 and bbe995ee-c6df-4d23-b96f-15f189f8d8a9 project ids, I was not able to deploy yet anything from the cargo workspace, can you take a look?
GOgemcoder (old)5/14/2023
https://github.com/gemwalletcom/api here is the code, there is two binaries, client and deamon
GitHub
GitHub - gemwalletcom/api
Contribute to gemwalletcom/api development by creating an account on GitHub.
GOgemcoder (old)5/14/2023
This is what I get
GOgemcoder (old)5/14/2023
@erikh @Brody can you please help here to figure it out? Quite confident something wrong with nixpack setup. I also tried to set NIXPACKS_RUST_BIN and NIXPACKS_CARGO_WORKSPACE ERROR: failed to solve: process "/bin/bash -ol pipefail -c cp target/release/client bin" did not complete successfully: exit code: 1 Seems like it's not able to move the binary to the bin folder This is pretty standard setup for cargo workspace with multiple binaries as api and worker Solution was not to put binary into /bin folder and keep them in the root, because it had conflict with the folder and the name of the binary

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
Support Update 004# Support Update 004 This series is for keeping everyone in the loop about what’s happening in suppHow to run vernemq docker containerI am trying to get a container with verenmq running on railway, i am adding my own vernemq.conf fileSSL cert not valid?Hi! i'm having a problem with my SSL cert showing up as not valid.. it's for api.borrachopescador.oError 405Subject: 405 Error when making a POST request to '/reset_password/<token>' endpoint Dear Railway SuHow to run command or script right AFTER deployment is liveThis is Next.js app. I need to do `PUT https://myapp.com/api/inngest` on my own app, which will in tCant connect to server, i have my project set up and everything works except i cant connect to it.I have a python server and i set the PORT env variable and i even checked with os.environ and it shoDont connect back-end Nodejs on my database MySQL.Hello guys. I have one application Nodejs deployed in railway. My application backend it works, but Cant run Django in Uvicorn with DockerfileDjango with uvi corn Hi all i am trying to get Django working with uvcorn. Guni corn works perfect Deployment is stuck in "deploying" state. Tried redeploying but it is still getting stuckI have a simple sveltekit app. It has a few deployments in last 2 months and everytime it deployed wcannot restart my database please helpI cant restart my database.. says "Plugin Stopped Plugin was stopped due to exeeding usage limits.Node build failingCreated a project today - I initially had a Dockerfile then removed it to try and use the default buwhere do i acess the terminal?i want to acess the terminal via website, where do i find it?Issue with packages/deployingI can build and start the project fine locally, however when trying to deploy on railway I run into MongoDB authentication failedI am trying to connect to my MongoDB hosted on Railway. I just created the MongoDB, so it only contaAsync API not working from Dockerized Streamlit projectProjectID: ac828fce-6f54-43e9-825c-ac4871d226ba This might be more related to my particular docker Is estimated usage not working?All of my estimated usage is equal to current cost. Is there an inaccuracy in data right now?Custom Domain HTTPS TLS Cert invalidProject ID: 81d08146-e275-403d-8a25-046edbf806f6 I have a domain purchased on Google Domains that IQuestion: High availability?Hi, I'm consideirng using Railway for deploying critical applications to production. By critical I mCan't reach datadog agentHey folks! I'm trying to launch a datadog agent via docker on Railway. It works when I run it locallDocker + Streamlit not workingI am trying to deploy a Streamlit app with Docker. The image runs fine locally. I let Railway dete