hello
vissequ
HOBBYOP

a year ago

can anyone please help me with deploying a project i have working locally?

Solved

94 Replies

a year ago

you gotta give a whole lot more information


vissequ
HOBBYOP

a year ago

I understand. I have an application that is using Node JS and it interfaces with the X API to tokenize X posts. It works great locally, but I am now trying to place it online. I apologize as I am new with some of this, and I am used to simpler websites, so I am not really sure all the specifics. but I was trying to find someone I can talk to help me do it.


a year ago

more information, what errors, what have you tried, what isnt working, etc etc


vissequ
HOBBYOP

a year ago

you're right. this is out of scope so to say. i am basically looking for a tutor. i have no errors because I don't know where to go. I apologize for wasting your time and I thank you for it. I was trying to find a non admin


a year ago

very possible for someone non-admin to come help, im just trying to kick start the convo, admin or not, whoever may help you needs information


a year ago

Have you read through Railway's quickstart guide? You're welcome to ask questions, but I won't be able to walk you through the entire process

https://docs.railway.com/quick-start


mikexie360
PRO

a year ago

if you make a dockerfile on your github repo, it will deploy from the dockerfile


vissequ
HOBBYOP

a year ago

Thank you you are all extremely kind I will look into these resources


vissequ
HOBBYOP

a year ago

is there a ecosystem here where I could hire someone to help me set it up? like someone I can hire that can take a zip of a website that works locally and make it "work" online?


a year ago

No, there is not. You'll need to put in some effort to get your site working


a year ago

Have you read the quickstart docs? If so, send your repo here along with a screenshot of your project as it exists on Railway and any errors you may have



vissequ
HOBBYOP

a year ago

That’s totally understandable I’ve been working on it a lot and I’m getting closer. I have a working docker version of t he app and I am using railway CLI right now. I am motivated to do it myself. Just updating you. I have no specific questions yet. Thank you again for your time


vissequ
HOBBYOP

a year ago

I cannot overcome this

Nixpacks was unable to generate a build plan for this app.


vissequ
HOBBYOP

a year ago

context: a1b5c0b1fb7d30462d93acd245f733e6


a year ago

full logs please


mikexie360
PRO

a year ago

can you post your docker file?


a year ago

they aren't using one


mikexie360
PRO

a year ago

Wait, are you guys able to see our entire railway project from a project id?

is that how you know if we are using dockerfiles?


a year ago

they just showed a log that said nixpacks…


a year ago

1319062092531105800


a year ago

Please send the full logs as well as your repo if possible


vissequ
HOBBYOP

a year ago

Can I upload a zip file? I am sorry I am new to this it is very confusing to me. My main issue is I am unable to use railway up and so I have been using chat gpt to manually make the docker file and upload it but I have a hard time getting it to detect changes. One time I updated it and it instantly knew. But now it’s been half an hour and whenever I update it nothing changes. I try deleting and re addding vissequ/xnft:latest but it ignores it


vissequ
HOBBYOP

a year ago

I don’t know how to send the logs besides copying paste and they are too long is there a way to download them?


a year ago

Are you not storing your code in a Github repo? That should be your first step. the CLI is much more confusing to use than just connecting a Github repo


a year ago

is there a reason you're not using Github?


a year ago

CTRL/COMMAND + K --> Download Build Logs


vissequ
HOBBYOP

a year ago

No sir I am not using GitHub


vissequ
HOBBYOP

a year ago

I know it though I have an account


vissequ
HOBBYOP

a year ago

I will try to switch to GitHub


vissequ
HOBBYOP

a year ago

Command K download is not an option for me I think I’m unlucky lol!


a year ago

Do you have a deployment selected?


vissequ
HOBBYOP

a year ago

I thought so. But I am trying now to switch to GitHub like you said.


vissequ
HOBBYOP

a year ago

Do I need to upload node modules to GitHub?


a year ago

No, you do not


vissequ
HOBBYOP

a year ago

Ok I have now synced to GitHub


vissequ
HOBBYOP

a year ago

The log is too long to send here unfortunately


vissequ
HOBBYOP

a year ago

I will upload it as text


vissequ
HOBBYOP

a year ago


mikexie360
PRO

a year ago

upload it as a txt file next time.

but is this a log file from railway?


vissequ
HOBBYOP

a year ago

oh my bad i did rtf. yes it is from xNFT Production logs on Railway


vissequ
HOBBYOP

a year ago

i had it working briefly, but i broke it accidentally by asking it to break the line after 4 words instead of 5, that doesn't really make any sense, so there's probably something else going on, but I'm just triyng to get it back to the code where it breaks the line after 5 words


mikexie360
PRO

a year ago

if it is uploaded to github, can you post your github repo?

And did you deploy the github repo directly into railway?


vissequ
HOBBYOP

a year ago

yes but i set it to be private only. i'm bad at github and i don't know how to change that so give me a minute while i re upload


vissequ
HOBBYOP

a year ago


a year ago

Thanks for uploading it as a Github repo. Now, please create a new project on Railway as well as a new service from that repo.


vissequ
HOBBYOP

a year ago

okay I will do that now


a year ago


vissequ
HOBBYOP

a year ago

i just select xnft4, not configure app right?

1319096586214707200


vissequ
HOBBYOP

a year ago

yes I beleive so I am reading the link from B rody


vissequ
HOBBYOP

a year ago

Brody*


vissequ
HOBBYOP

a year ago

i did not see the deploy now or add variables option, my understanding is i must add my .env variables


vissequ
HOBBYOP

a year ago

but i know how to add them after


vissequ
HOBBYOP

a year ago

is it ok to add after?


a year ago

You are correct. If you need to add environment variables, you can add them after selecting your Github repo


mikexie360
PRO

a year ago

let me know if I am wrong.

My understanding is that the app is running, but is breaking at line 188. and line 94

Error processing GIF: AxiosError: Request failed with status code 401

    at settle (/app/node_modules/axios/dist/node/axios.cjs:2026:12)

    at IncomingMessage.handleStreamEnd (/app/node_modules/axios/dist/node/axios.cjs:3142:11)

    at IncomingMessage.emit (node:events:525:35)

    at endReadableNT (node:internal/streams/readable:1358:12)

    at processTicksAndRejections (node:internal/process/task_queues:83:21)

    at Axios.request (/app/node_modules/axios/dist/node/axios.cjs:4252:41)

    at processTicksAndRejections (node:internal/process/task_queues:96:5)

    at async uploadFileToPinata (/app/server.js:94:22)

    at async /app/server.js:188:24 {

  code: 'ERR_BAD_REQUEST',

Line 188 in your server.js is unable to do the request. Are you able to do the request in postman?
line 188

        const gifCID = await uploadFileToPinata(gifPath);

line 94

    const response = await axios.post(

a year ago

We will get there eventually. First, let's finish setting up the app through Github


vissequ
HOBBYOP

a year ago

ok


vissequ
HOBBYOP

a year ago

i have added my .env variables


vissequ
HOBBYOP

a year ago

i am deploying now


vissequ
HOBBYOP

a year ago

you guys have very good support btw


vissequ
HOBBYOP

a year ago

thank you all for helping me


mikexie360
PRO

a year ago

question.

if I put the ENV variables in docker, does that automatically change the env variables on the railway.app service?

So if i have this in my dockerfile on github

ENV PORT=3000

Does it update the service env variables automatically?


a year ago

Railway's docs say to use the ARG command rather than the ENV command

https://docs.railway.com/guides/dockerfiles#using-variables-at-build-time

If you have questions that relate to your own deployment, please open a new help thread


vissequ
HOBBYOP

a year ago

oh my it appears to be working


vissequ
HOBBYOP

a year ago

this would be most wonderful news


vissequ
HOBBYOP

a year ago

i wish to make a change to a line of the code, if I update this in the GitHub will it automatically update on Railway?


a year ago

Yes, that was the point of connecting your service to a repo


a year ago

Glad to hear it


vissequ
HOBBYOP

a year ago

oh that's lovely!


vissequ
HOBBYOP

a year ago

i see why people use this then perhaps


mikexie360
PRO

a year ago

yep, but You have to hit the deploy button, I don't think it does it automatically by default.


vissequ
HOBBYOP

a year ago

ohhh


a year ago

That's not the case


vissequ
HOBBYOP

a year ago

oooo


vissequ
HOBBYOP

a year ago

the plot thickens


vissequ
HOBBYOP

a year ago

oh yeah i see it auto detcted


vissequ
HOBBYOP

a year ago

1319098914745352200


vissequ
HOBBYOP

a year ago

all i did was update in the github it auto detected the change


mikexie360
PRO

a year ago

ok, I have to do it on my service, is it because I have other stuff going on?


a year ago

Railway will automatically redeploy your service if any commits are pushed to the connected branch. The only scenario where it doesn't do this is if you have people pushing commits to your Github repo who are not added to your Railway project


a year ago

If this is the case, you will need to approve any changes made


mikexie360
PRO

a year ago

ok, that is the case for me.

I have a repo that is in a github organization, and I commit from a different account. So, I have to manually hit the deploy button when there is a new commit.


vissequ
HOBBYOP

a year ago

oh


vissequ
HOBBYOP

a year ago

that is why yes because that org is not in railway?


mikexie360
PRO

a year ago

the orginization repo is on github, and is owned by the organization.

The repo is on railway service.

But all commits are done by individuals inside the organization, but not by the organization.

So I have to manually hit deploy, when there is a new commit. At least from what I understand.


a year ago

If you're using Railway for an organization, you should be on the Pro plan. Once you upgrade, you can disable that check


mikexie360
PRO

a year ago

I have the hobby plan on my personal railway account. But I also have the pro plan in another workspace.


a year ago

If your deployment is working @vissequ, I'll be closing this thread


vissequ
HOBBYOP

a year ago

Please wait sir


vissequ
HOBBYOP

a year ago

I have one more thing to test if I may just a few minutes please


vissequ
HOBBYOP

a year ago

You can close this. Thank you so much!!!


a year ago

Happy to help


a year ago

!s


Status changed to Solved adam about 1 year ago


Loading...