hello
vissequ
HOBBYOP

2 years ago

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

Solved

94 Replies

2 years ago

you gotta give a whole lot more information


vissequ
HOBBYOP

2 years 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.


2 years ago

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


vissequ
HOBBYOP

2 years 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


2 years 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


2 years 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

2 years ago

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


vissequ
HOBBYOP

2 years ago

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


vissequ
HOBBYOP

2 years 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?


2 years ago

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


2 years 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

2 years 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

2 years ago

I cannot overcome this

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


vissequ
HOBBYOP

2 years ago

context: a1b5c0b1fb7d30462d93acd245f733e6


2 years ago

full logs please


mikexie360
PRO

2 years ago

can you post your docker file?


2 years ago

they aren't using one


mikexie360
PRO

2 years 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?


2 years ago

they just showed a log that said nixpacks...


2 years ago

1319062092531105904


2 years ago

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


vissequ
HOBBYOP

2 years 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

2 years 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?


2 years 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


2 years ago

is there a reason you're not using Github?


2 years ago

CTRL/COMMAND + K --> Download Build Logs


vissequ
HOBBYOP

2 years ago

No sir I am not using GitHub


vissequ
HOBBYOP

2 years ago

I know it though I have an account


vissequ
HOBBYOP

2 years ago

I will try to switch to GitHub


vissequ
HOBBYOP

2 years ago

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


2 years ago

Do you have a deployment selected?


vissequ
HOBBYOP

2 years ago

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


vissequ
HOBBYOP

2 years ago

Do I need to upload node modules to GitHub?


2 years ago

No, you do not


vissequ
HOBBYOP

2 years ago

Ok I have now synced to GitHub


vissequ
HOBBYOP

2 years ago

The log is too long to send here unfortunately


vissequ
HOBBYOP

2 years ago

I will upload it as text


vissequ
HOBBYOP

2 years ago


mikexie360
PRO

2 years ago

upload it as a txt file next time.

but is this a log file from railway?


vissequ
HOBBYOP

2 years ago

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


vissequ
HOBBYOP

2 years 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

2 years 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

2 years 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

2 years ago


2 years 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

2 years ago

okay I will do that now


2 years ago


vissequ
HOBBYOP

2 years ago

i just select xnft4, not configure app right?

1319096586214707211


vissequ
HOBBYOP

2 years ago

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


vissequ
HOBBYOP

2 years ago

Brody*


vissequ
HOBBYOP

2 years ago

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


vissequ
HOBBYOP

2 years ago

but i know how to add them after


vissequ
HOBBYOP

2 years ago

is it ok to add after?


2 years ago

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


mikexie360
PRO

2 years 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(

2 years ago

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


vissequ
HOBBYOP

2 years ago

ok


vissequ
HOBBYOP

2 years ago

i have added my .env variables


vissequ
HOBBYOP

2 years ago

i am deploying now


vissequ
HOBBYOP

2 years ago

you guys have very good support btw


vissequ
HOBBYOP

2 years ago

thank you all for helping me


mikexie360
PRO

2 years 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?


2 years 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

2 years ago

oh my it appears to be working


vissequ
HOBBYOP

2 years ago

this would be most wonderful news


vissequ
HOBBYOP

2 years 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?


2 years ago

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


2 years ago

Glad to hear it


vissequ
HOBBYOP

2 years ago

oh that's lovely!


vissequ
HOBBYOP

2 years ago

i see why people use this then perhaps


mikexie360
PRO

2 years ago

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


vissequ
HOBBYOP

2 years ago

ohhh


2 years ago

That's not the case


vissequ
HOBBYOP

2 years ago

oooo


vissequ
HOBBYOP

2 years ago

the plot thickens


vissequ
HOBBYOP

2 years ago

oh yeah i see it auto detcted


vissequ
HOBBYOP

2 years ago

1319098914745352222


vissequ
HOBBYOP

2 years ago

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


mikexie360
PRO

2 years ago

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


2 years 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


2 years ago

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


mikexie360
PRO

2 years 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

2 years ago

oh


vissequ
HOBBYOP

2 years ago

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


mikexie360
PRO

2 years 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.


2 years 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

2 years ago

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


2 years ago

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


vissequ
HOBBYOP

2 years ago

Please wait sir


vissequ
HOBBYOP

2 years ago

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


vissequ
HOBBYOP

2 years ago

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


2 years ago

Happy to help


2 years ago

!s


Status changed to Solved adam over 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...